From d5c6f6e8004ec10e744af88aca67cfb900a5df1b Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Tue, 25 Dec 2001 18:53:01 +0000 Subject: be more carefull on allocation --- usr.bin/ssh/auth1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3