=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-pubkey.c,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -r1.4 -r1.4.2.1 --- src/usr.bin/ssh/auth2-pubkey.c 2003/06/24 08:23:46 1.4 +++ src/usr.bin/ssh/auth2-pubkey.c 2004/02/28 03:51:32 1.4.2.1 @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2-pubkey.c,v 1.4 2003/06/24 08:23:46 markus Exp $"); +RCSID("$OpenBSD: auth2-pubkey.c,v 1.4.2.1 2004/02/28 03:51:32 brad Exp $"); #include "ssh2.h" #include "xmalloc.h" @@ -123,9 +123,9 @@ authenticated = 0; if (PRIVSEP(user_key_allowed(authctxt->pw, key)) && PRIVSEP(key_verify(key, sig, slen, buffer_ptr(&b), - buffer_len(&b))) == 1) + buffer_len(&b))) == 1) authenticated = 1; - buffer_clear(&b); + buffer_free(&b); xfree(sig); } else { debug("test whether pkalg/pkblob are acceptable"); @@ -170,9 +170,6 @@ struct stat st; Key *found; char *fp; - - if (pw == NULL) - return 0; /* Temporarily use the user's uid. */ temporarily_use_uid(pw);