=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.128.2.2 retrieving revision 1.128.2.3 diff -u -r1.128.2.2 -r1.128.2.3 --- src/usr.bin/ssh/ssh-keygen.c 2006/10/06 03:19:33 1.128.2.2 +++ src/usr.bin/ssh/ssh-keygen.c 2006/11/08 00:44:05 1.128.2.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.128.2.2 2006/10/06 03:19:33 brad Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.128.2.3 2006/11/08 00:44:05 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); }