1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/security/trousers/files/patch-src-tspi-rpc-tcstp-rpc.c
Norikatsu Shigemura 7612f38ced Add trousers 0.3.6, is a CPL (Common Public License) licensed Trusted
Computing Software Stack.  It is mostly compliant with the TSS 1.2
specification.

Obtained from:	http://bsssd.sourceforge.net/
2010-11-07 12:05:27 +00:00

12 lines
443 B
C

--- src/tspi/rpc/tcstp/rpc.c.orig 2010-03-12 05:26:51.000000000 +0900
+++ src/tspi/rpc/tcstp/rpc.c 2010-10-24 21:04:04.846552639 +0900
@@ -306,7 +306,7 @@
errno = 0;
if ((recv_size = recv(sock, buffer+recv_total, size-recv_total, 0)) <= 0) {
if (recv_size < 0) {
- if (errno == EINTR)
+ if (errno == EINTR || errno == EAGAIN)
continue;
LogError("Socket receive connection error: %s.", strerror(errno));
} else {