From 4d9ebfc1ae8788f66be711273d73bf4831a7cd4e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 11 Nov 2000 19:24:00 +0000 Subject: Ready to ship. svn path=/trunk/; revision=2983 --- imap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'imap.c') 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) -- cgit v1.2.3