mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue