diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | bufaux.c | 4 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20041211 | ||
2 | - (dtucker) OpenBSD CVS Sync | ||
3 | - markus@cvs.openbsd.org 2004/12/06 16:00:43 | ||
4 | [bufaux.c] | ||
5 | use 0x00 not \0 since buf[] is a bignum | ||
6 | |||
1 | 20041208 | 7 | 20041208 |
2 | - (tim) [configure.ac] Comment some non obvious platforms in the | 8 | - (tim) [configure.ac] Comment some non obvious platforms in the |
3 | target-specific case statement. Suggested and OK by dtucker@ | 9 | target-specific case statement. Suggested and OK by dtucker@ |
@@ -1927,4 +1933,4 @@ | |||
1927 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 1933 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
1928 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 1934 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
1929 | 1935 | ||
1930 | $Id: ChangeLog,v 1.3600 2004/12/09 02:29:58 tim Exp $ | 1936 | $Id: ChangeLog,v 1.3601 2004/12/11 02:34:56 dtucker Exp $ |
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: bufaux.c,v 1.33 2004/10/29 23:56:17 djm Exp $"); | 40 | RCSID("$OpenBSD: bufaux.c,v 1.34 2004/12/06 16:00:43 markus Exp $"); |
41 | 41 | ||
42 | #include <openssl/bn.h> | 42 | #include <openssl/bn.h> |
43 | #include "bufaux.h" | 43 | #include "bufaux.h" |
@@ -151,7 +151,7 @@ buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) | |||
151 | return (-1); | 151 | return (-1); |
152 | } | 152 | } |
153 | buf = xmalloc(bytes); | 153 | buf = xmalloc(bytes); |
154 | buf[0] = '\0'; | 154 | buf[0] = 0x00; |
155 | /* Get the value of in binary */ | 155 | /* Get the value of in binary */ |
156 | oi = BN_bn2bin(value, buf+1); | 156 | oi = BN_bn2bin(value, buf+1); |
157 | if (oi != bytes-1) { | 157 | if (oi != bytes-1) { |