1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

knownhosts: Do not double free memory

CID 1393236

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-06-06 08:38:14 +02:00
parent 03b05c8a5e
commit 0940b0f29b

View File

@@ -358,7 +358,6 @@ int ssh_known_hosts_parse_line(const char *hostname,
p = strtok(known_host, " "); p = strtok(known_host, " ");
if (p == NULL ) { if (p == NULL ) {
free(known_host);
rc = SSH_ERROR; rc = SSH_ERROR;
goto out; goto out;
} }