summaryrefslogtreecommitdiffstats
path: root/bufaux.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-08 06:15:55 +0100
committerDamien Miller <djm@mindrot.org>1999-11-08 06:15:55 +0100
commitfd7c911f090749774cf1869420523c4811beeeb0 (patch)
treecd57567ddb3371c0c805a8bd8ace0c66df02fa53 /bufaux.c
parent*** empty log message *** (diff)
downloadopenssh-fd7c911f090749774cf1869420523c4811beeeb0.tar.xz
openssh-fd7c911f090749774cf1869420523c4811beeeb0.zip
Merged OpenBSD CVS changes that go awayV_1_2_PRE8
Diffstat (limited to 'bufaux.c')
-rw-r--r--bufaux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bufaux.c b/bufaux.c
index 9d5776f56..31e1ae9ee 100644
--- a/bufaux.c
+++ b/bufaux.c
@@ -16,7 +16,7 @@ Buffers.
#include "config.h"
#include "includes.h"
-RCSID("$Id: bufaux.c,v 1.2 1999/10/28 03:25:17 damien Exp $");
+RCSID("$Id: bufaux.c,v 1.3 1999/11/08 05:15:55 damien Exp $");
#include "ssh.h"
@@ -45,7 +45,9 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value)
/* Get the value of in binary */
oi = BN_bn2bin(value, buf);
- assert(oi == bin_size);
+ if (oi != bin_size)
+ fatal("buffer_put_bignum: BN_bn2bin() failed: oi %d != bin_size %d",
+ oi, bin_size);
/* Store the number of bits in the buffer in two bytes, msb first. */
PUT_16BIT(msg, bits);