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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user