summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-01-10 16:45:56 +0000
committermillert <millert@openbsd.org>2004-01-10 16:45:56 +0000
commit6120759f46d378e6a9d0c7a644ca4706ce5a91ef (patch)
treebfc709ee3120e429a843650929dcfe8590c57e3c /lib/libc
parentRDE update generation. First we queue all updates and withdraws on a per (diff)
downloadwireguard-openbsd-6120759f46d378e6a9d0c7a644ca4706ce5a91ef.tar.xz
wireguard-openbsd-6120759f46d378e6a9d0c7a644ca4706ce5a91ef.zip
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@.
Diffstat (limited to 'lib/libc')
-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) {