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:
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…
x
Reference in New Issue
Block a user