]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - 0034-fix_dovecot_authentication.patch
- allow building without Nagios support
[packages/cyrus-sasl.git] / 0034-fix_dovecot_authentication.patch
1 --- a/lib/checkpw.c
2 +++ b/lib/checkpw.c
3 @@ -587,16 +587,14 @@ static int read_wait(int fd, unsigned de
4             /* Timeout. */
5             errno = ETIMEDOUT;
6             return -1;
7 -       case +1:
8 -           if (FD_ISSET(fd, &rfds)) {
9 -               /* Success, file descriptor is readable. */
10 -               return 0;
11 -           }
12 -           return -1;
13         case -1:
14             if (errno == EINTR || errno == EAGAIN)
15                 continue;
16         default:
17 +           if (FD_ISSET(fd, &rfds)) {
18 +               /* Success, file descriptor is readable. */
19 +               return 0;
20 +           }
21             /* Error catch-all. */
22             return -1;
23         }
This page took 0.102269 seconds and 3 git commands to generate.