summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-12-25 18:53:01 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-12-25 18:53:01 +0000
commitd5c6f6e8004ec10e744af88aca67cfb900a5df1b (patch)
tree6838c46dbef234074a49df6128bc236f213c969a /usr.bin
parentac9bb7eda530dca8bd59bb900bbdfdb12e907586 (diff)
be more carefull on allocation
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/auth1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c
index 6163b26fa1e..1a0ccdc7706 100644
--- a/usr.bin/ssh/auth1.c
+++ b/usr.bin/ssh/auth1.c
@@ -10,7 +10,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth1.c,v 1.27 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: auth1.c,v 1.28 2001/12/25 18:53:00 markus Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -227,6 +227,8 @@ do_authloop(Authctxt *authctxt)
}
/* RSA authentication requested. */
n = BN_new();
+ if (n == NULL)
+ fatal("BN_new failed");
packet_get_bignum(n, &nlen);
packet_integrity_check(plen, nlen, type);
authenticated = auth_rsa(pw, n);