aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-11-11 19:24:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-11-11 19:24:00 +0000
commit4d9ebfc1ae8788f66be711273d73bf4831a7cd4e (patch)
treedaebb4a9a23e88cd09eefc12d78feb194c9ee938 /imap.c
parent63a3fd1876062cdff8e59feca193a840a91bc0c8 (diff)
downloadfetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.tar.gz
fetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.tar.bz2
fetchmail-4d9ebfc1ae8788f66be711273d73bf4831a7cd4e.zip
Ready to ship.
svn path=/trunk/; revision=2983
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index ea44e5a0..39868ad5 100644
--- a/imap.c
+++ b/imap.c
@@ -608,8 +608,10 @@ static int do_gssauth(int sock, char *hostname, char *username)
SockWrite(sock, buf1, strlen(buf1));
/* we should be done. Get status and finish up */
- if (result = gen_recv(sock, buf1, sizeof buf1))
- return result;
+ do {
+ if (result = gen_recv(sock, buf1, sizeof buf1))
+ return result;
+ } while(strncmp(buf1, tag, strlen(tag)) != 0);
if (strstr(buf1, "OK")) {
/* flush security context */
if (outlevel >= O_DEBUG)