diff options
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r-- | agent/command-ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 0ff70b534..8f8e285ab 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -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); |