=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/auth-rsa.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- src/usr.bin/ssh/Attic/auth-rsa.c 2000/09/07 21:13:36 1.29 +++ src/usr.bin/ssh/Attic/auth-rsa.c 2000/10/03 18:03:03 1.30 @@ -14,7 +14,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth-rsa.c,v 1.29 2000/09/07 21:13:36 markus Exp $"); +RCSID("$OpenBSD: auth-rsa.c,v 1.30 2000/10/03 18:03:03 markus Exp $"); #include "rsa.h" #include "packet.h" @@ -29,6 +29,10 @@ #include #include + +/* import */ +extern ServerOptions options; + /* * Session identifier that is used to bind key exchange and authentication * responses to a particular session. @@ -116,7 +120,6 @@ int auth_rsa(struct passwd *pw, BIGNUM *client_n) { - extern ServerOptions options; char line[8192], file[1024]; int authenticated; unsigned int bits; @@ -124,6 +127,10 @@ unsigned long linenum = 0; struct stat st; RSA *pk; + + /* no user given */ + if (pw == NULL) + return 0; /* Temporarily use the user's uid. */ temporarily_use_uid(pw->pw_uid);