diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 12:54:25 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 12:54:25 +1000 |
commit | f5cafb0c850a3b6cc7db27fa79afbd4fb185f8f2 (patch) | |
tree | 1d6afb69e3137f947b0f1a48d5bb4a9885aa91db /auth2-pubkey.c | |
parent | 9a2a60986bf33414acf63b6d92d93a2f690c3a17 (diff) |
- otto@cvs.openbsd.org 2008/07/03 21:46:58
[auth2-pubkey.c]
avoid nasty double free; ok dtucker@ djm@
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r-- | auth2-pubkey.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c index daa751ca0..b1e38e5f5 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-pubkey.c,v 1.18 2008/07/02 12:03:51 dtucker Exp $ */ | 1 | /* $OpenBSD: auth2-pubkey.c,v 1.19 2008/07/03 21:46:58 otto Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -195,7 +195,6 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) | |||
195 | f = auth_openkeyfile(file, pw, options.strict_modes); | 195 | f = auth_openkeyfile(file, pw, options.strict_modes); |
196 | 196 | ||
197 | if (!f) { | 197 | if (!f) { |
198 | xfree(file); | ||
199 | restore_uid(); | 198 | restore_uid(); |
200 | return 0; | 199 | return 0; |
201 | } | 200 | } |