- (dtucker) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2004/12/06 16:00:43 [bufaux.c] use 0x00 not \0 since buf[] is a bignum
This commit is contained in:
parent
0f83d2907c
commit
56c9598e5e
|
@ -1,3 +1,9 @@
|
|||
20041211
|
||||
- (dtucker) OpenBSD CVS Sync
|
||||
- markus@cvs.openbsd.org 2004/12/06 16:00:43
|
||||
[bufaux.c]
|
||||
use 0x00 not \0 since buf[] is a bignum
|
||||
|
||||
20041208
|
||||
- (tim) [configure.ac] Comment some non obvious platforms in the
|
||||
target-specific case statement. Suggested and OK by dtucker@
|
||||
|
@ -1927,4 +1933,4 @@
|
|||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||
|
||||
$Id: ChangeLog,v 1.3600 2004/12/09 02:29:58 tim Exp $
|
||||
$Id: ChangeLog,v 1.3601 2004/12/11 02:34:56 dtucker Exp $
|
||||
|
|
4
bufaux.c
4
bufaux.c
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: bufaux.c,v 1.33 2004/10/29 23:56:17 djm Exp $");
|
||||
RCSID("$OpenBSD: bufaux.c,v 1.34 2004/12/06 16:00:43 markus Exp $");
|
||||
|
||||
#include <openssl/bn.h>
|
||||
#include "bufaux.h"
|
||||
|
@ -151,7 +151,7 @@ buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value)
|
|||
return (-1);
|
||||
}
|
||||
buf = xmalloc(bytes);
|
||||
buf[0] = '\0';
|
||||
buf[0] = 0x00;
|
||||
/* Get the value of in binary */
|
||||
oi = BN_bn2bin(value, buf+1);
|
||||
if (oi != bytes-1) {
|
||||
|
|
Loading…
Reference in New Issue