diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:45:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:45:32 +0000 |
commit | 3cdb6743f792f9b6705b352c9e4a5b502b1f5993 (patch) | |
tree | 7376e1c66c8394055fb1d79aa47abdca65c7a0a2 /gss-misc.c | |
parent | 83da22c61ec3a3cb3911112591b22aa7d4d037b8 (diff) | |
download | rsyslog-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |