=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.136.2.1 retrieving revision 1.136.2.2 diff -u -r1.136.2.1 -r1.136.2.2 --- src/usr.bin/ssh/ssh-keygen.c 2006/09/30 04:06:51 1.136.2.1 +++ src/usr.bin/ssh/ssh-keygen.c 2006/11/08 00:17:14 1.136.2.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.136.2.1 2006/09/30 04:06:51 brad Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.136.2.2 2006/11/08 00:17:14 brad Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1994 Tatu Ylonen , Espoo, Finland @@ -215,7 +215,8 @@ if (buffer_len(b) < bytes) fatal("buffer_get_bignum_bits: input buffer too small: " "need %d have %d", bytes, buffer_len(b)); - BN_bin2bn(buffer_ptr(b), bytes, value); + if (BN_bin2bn(buffer_ptr(b), bytes, value) == NULL) + fatal("buffer_get_bignum_bits: BN_bin2bn failed"); buffer_consume(b, bytes); }