summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-10 16:45:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-10 16:45:57 +0000
commit30a469312bb43b8befd0441370ef1cfddffa3bae (patch)
tree0eb7259775323d1ec5e74c76a5dd7be886016b94
parentd8df3d2156171ba2242d297a4dbb9363795d506e (diff)
Don't clean options in auth_clean() which was introduced in rev 1.8.
login(1) depends on auth_clean() leaving options alone so this was API breakage. Verified to not make ftpd leak memory by mpech@.
-rw-r--r--lib/libc/gen/auth_subr.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index d935985792b..087c524a105 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.24 2004/01/08 04:07:54 brad Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.25 2004/01/10 16:45:56 millert Exp $ */
/*-
* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
@@ -180,14 +180,6 @@ auth_clean(auth_session_t *as)
}
/*
- * Clean out the opt list
- */
- while ((opt = as->optlist) != NULL) {
- as->optlist = opt->next;
- free(opt);
- }
-
- /*
* Clean out data
*/
while ((data = as->data) != NULL) {