diff options
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -16,7 +16,7 @@ Buffers. | |||
16 | 16 | ||
17 | #include "config.h" | 17 | #include "config.h" |
18 | #include "includes.h" | 18 | #include "includes.h" |
19 | RCSID("$Id: bufaux.c,v 1.2 1999/10/28 03:25:17 damien Exp $"); | 19 | RCSID("$Id: bufaux.c,v 1.3 1999/11/08 05:15:55 damien Exp $"); |
20 | 20 | ||
21 | #include "ssh.h" | 21 | #include "ssh.h" |
22 | 22 | ||
@@ -45,7 +45,9 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value) | |||
45 | 45 | ||
46 | /* Get the value of in binary */ | 46 | /* Get the value of in binary */ |
47 | oi = BN_bn2bin(value, buf); | 47 | oi = BN_bn2bin(value, buf); |
48 | assert(oi == bin_size); | 48 | if (oi != bin_size) |
49 | fatal("buffer_put_bignum: BN_bn2bin() failed: oi %d != bin_size %d", | ||
50 | oi, bin_size); | ||
49 | 51 | ||
50 | /* Store the number of bits in the buffer in two bytes, msb first. */ | 52 | /* Store the number of bits in the buffer in two bytes, msb first. */ |
51 | PUT_16BIT(msg, bits); | 53 | PUT_16BIT(msg, bits); |