summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:07:52 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:07:52 +1100
commitaef7a095c8d9ceba4d2595bf41902369272551a3 (patch)
tree1ccc291b89fe13afd2360954ee865b4a81a86859 /auth1.c
parent503761ac45c1546f211c3585f58f352f16400891 (diff)
- markus@cvs.openbsd.org 2001/12/25 18:53:00
[auth1.c] be more carefull on allocation
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth1.c b/auth1.c
index 3aac26fcc..41628cedc 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth1.c,v 1.27 2001/12/19 07:18:56 deraadt Exp $"); 13RCSID("$OpenBSD: auth1.c,v 1.28 2001/12/25 18:53:00 markus Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "rsa.h" 16#include "rsa.h"
@@ -231,6 +231,8 @@ do_authloop(Authctxt *authctxt)
231 } 231 }
232 /* RSA authentication requested. */ 232 /* RSA authentication requested. */
233 n = BN_new(); 233 n = BN_new();
234 if (n == NULL)
235 fatal("BN_new failed");
234 packet_get_bignum(n, &nlen); 236 packet_get_bignum(n, &nlen);
235 packet_integrity_check(plen, nlen, type); 237 packet_integrity_check(plen, nlen, type);
236 authenticated = auth_rsa(pw, n); 238 authenticated = auth_rsa(pw, n);