commit | 963f6c08128c2baaff0665342489ea47c954ac25 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 26 15:55:44 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 26 15:55:44 2021 +0200 |
tree | 84dbb86606c73f33ba8e011419efc9f0387cdc75 | |
parent | 0ab3a66f8f406adaaba4979cf53714803fefed36 [diff] [blame] |
server session BUGFIX duplicate has before freeing the buffer
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c index c339729..2f77d26 100644 --- a/src/session_server_ssh.c +++ b/src/session_server_ssh.c
@@ -822,8 +822,9 @@ goto error; } + pass_hash = strdup(pass_hash); free(buf); - return strdup(pass_hash); + return pass_hash; error: free(buf);