diff options
author | Werner Koch <[email protected]> | 2013-08-28 15:58:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-08-28 15:58:43 +0000 |
commit | fdbf76eee6a4e81b040d423926b71af7b491fb4a (patch) | |
tree | 9ab8cce3b51103d9f5433632d7fa62504a158522 | |
parent | gpg: Make decryption with the OpenPGP card work. (diff) | |
download | gnupg-fdbf76eee6a4e81b040d423926b71af7b491fb4a.tar.gz gnupg-fdbf76eee6a4e81b040d423926b71af7b491fb4a.zip |
Fix commit 04e2c83f.
* agent/command-ssh.c (stream_read_string): Do not assign to a NULL
ptr.
-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); |