1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Don't free the APOP auth string before checking it.

Bump PORTREVISION.

Approved by:    portmgr (marcus@), ache@
This commit is contained in:
Brian Somers 2004-09-21 18:21:23 +00:00
parent eccfb252a3
commit 0be1abc30b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118321
2 changed files with 27 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= qpopper
PORTVERSION= 2.53
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= ftp://ftp.qualcomm.com/eudora/servers/unix/popper/old/
DISTNAME= ${PORTNAME}${PORTVERSION}

View File

@ -0,0 +1,26 @@
--- pop_apop.c.orig Fri Jul 10 00:44:07 1998
+++ pop_apop.c Tue Sep 14 23:02:05 2004
@@ -180,17 +180,18 @@
return(pop_auth_fail(p, POP_FAILURE, "not authorized"));
}
-#ifdef GDBM
- gdbm_close (db);
-#else
- dbm_close (db);
-#endif
(void) close(f);
MD5Init(&mdContext);
MD5Update(&mdContext, (unsigned char *)p->md5str, strlen(p->md5str));
MD5Update(&mdContext, (unsigned char *)obscure(ddatum.dptr), (ddatum.dsize - 1));
MD5Final(digest, &mdContext);
+
+#ifdef GDBM
+ gdbm_close (db);
+#else
+ dbm_close (db);
+#endif
cp = buffer;
for (ep = (dp = digest) + sizeof digest / sizeof digest[0];