diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-07-03 21:46:59 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-07-03 21:46:59 +0000 |
commit | 5dc74019e7b50cee22b1df46ea6c57f9b81454db (patch) | |
tree | 38017a8b8f71331bc669c848540b86467934a1b0 /usr.bin/ssh | |
parent | d23e171bf7a8505d74487f0190c75127078a9a58 (diff) |
avoid nasty double free; ok dtucker@ djm@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/auth2-pubkey.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c index 50f6e6b1131..a26036cc2f8 100644 --- a/usr.bin/ssh/auth2-pubkey.c +++ b/usr.bin/ssh/auth2-pubkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-pubkey.c,v 1.18 2008/07/02 12:03:51 dtucker Exp $ */ +/* $OpenBSD: auth2-pubkey.c,v 1.19 2008/07/03 21:46:58 otto Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -190,7 +190,6 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) f = auth_openkeyfile(file, pw, options.strict_modes); if (!f) { - xfree(file); restore_uid(); return 0; } |