summaryrefslogtreecommitdiffstats
path: root/gss-misc.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-19 07:45:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-19 07:45:32 +0000
commit3cdb6743f792f9b6705b352c9e4a5b502b1f5993 (patch)
tree7376e1c66c8394055fb1d79aa47abdca65c7a0a2 /gss-misc.c
parent83da22c61ec3a3cb3911112591b22aa7d4d037b8 (diff)
downloadrsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.tar.gz
rsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.tar.xz
rsyslog-3cdb6743f792f9b6705b352c9e4a5b502b1f5993.zip
applied enhanced gss-api functionality provided by varmojfekoj
Diffstat (limited to 'gss-misc.c')
-rw-r--r--gss-misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gss-misc.c b/gss-misc.c
index 68197f01..7a09b1b9 100644
--- a/gss-misc.c
+++ b/gss-misc.c
@@ -85,12 +85,12 @@ static int read_all(int fd, char *buf, unsigned int nbyte)
fd_set rfds;
struct timeval tv;
- FD_ZERO(&rfds);
- FD_SET(fd, &rfds);
- tv.tv_sec = 1;
- tv.tv_usec = 0;
-
for (ptr = buf; nbyte; ptr += ret, nbyte -= ret) {
+ FD_ZERO(&rfds);
+ FD_SET(fd, &rfds);
+ tv.tv_sec = 1;
+ tv.tv_usec = 0;
+
if ((ret = select(FD_SETSIZE, &rfds, NULL, NULL, &tv)) <= 0
|| !FD_ISSET(fd, &rfds))
return ret;