1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-01 16:33:02 +01:00

Fix commit 04e2c83f.

* agent/command-ssh.c (stream_read_string): Do not assign to a NULL
ptr.
This commit is contained in:
Werner Koch 2013-08-28 17:58:43 +02:00
parent 780ba32336
commit fdbf76eee6

View File

@ -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);