mirror of git://git.gnupg.org/gnupg.git
Fix commit 04e2c83f
.
* agent/command-ssh.c (stream_read_string): Do not assign to a NULL ptr.
This commit is contained in:
parent
780ba32336
commit
fdbf76eee6
|
@ -487,7 +487,8 @@ stream_read_string (estream_t stream, unsigned int secure,
|
|||
unsigned char *buffer = NULL;
|
||||
u32 length = 0;
|
||||
|
||||
*string_size = 0;
|
||||
if (string_size)
|
||||
*string_size = 0;
|
||||
|
||||
/* Read string length. */
|
||||
err = stream_read_uint32 (stream, &length);
|
||||
|
|
Loading…
Reference in New Issue