Patch provided by Todd Sabin in private e-mail to fix problems with

version 2000 of the UW IMAP software.
This commit is contained in:
tron 2000-11-15 18:50:28 +00:00
parent 719854650b
commit 81a9c44a9c
2 changed files with 24 additions and 1 deletions

View file

@ -1,5 +1,6 @@
$NetBSD: patch-sum,v 1.13 2000/10/29 22:56:31 frueauf Exp $
$NetBSD: patch-sum,v 1.14 2000/11/15 18:50:28 tron Exp $
MD5 (patch-aa) = cc1298297934cf1b0821583ef27ac5d9
MD5 (patch-ab) = e250709868504acbfd40cfa89634766e
MD5 (patch-ac) = 2c816f294ba8abeca66f8d825791b076
MD5 (patch-ad) = da45661a42aca654307a83b8d00c6a18

View file

@ -0,0 +1,22 @@
$NetBSD: patch-ac,v 1.11 2000/11/15 18:50:29 tron Exp $
--- imap.c.orig Fri Nov 10 23:34:27 2000
+++ imap.c Wed Nov 15 19:43:51 2000
@@ -827,13 +827,11 @@
strcat (buf1, "\r\n");
SockWrite (sock, buf1, strlen (buf1));
- if ((result = gen_recv (sock, buf1, sizeof (buf1))))
- return result;
-
- if (strstr (buf1, "OK")) {
- return PS_SUCCESS;
+ result = imap_ok (sock, NULL);
+ if (result == PS_SUCCESS) {
+ return result;
} else {
- return PS_AUTHFAIL;
+ return PS_AUTHFAIL;
}
}