summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authordtucker <dtucker>2008-07-04 02:54:25 +0000
committerdtucker <dtucker>2008-07-04 02:54:25 +0000
commit45fc665e55c72e2030fe4e7eeb23e780117d987b (patch)
tree5557bdaabf988296d263e50803a544a7ce182e29 /auth2-pubkey.c
parentbee28260e95de58ac413928458ceb60dd443bdfc (diff)
downloadopenssh-45fc665e55c72e2030fe4e7eeb23e780117d987b.tar.gz
- 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index daa751ca..b1e38e5f 100644
--- a/auth2-pubkey.c
+++ b/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.
*
@@ -195,7 +195,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;
}