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

messages: Fix memory leak in ssh_packet_userauth_request

Found by AddressSanitizer.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-01 20:43:15 +02:00
parent 1b12a2415d
commit f8fc0b9dfb

View File

@@ -839,6 +839,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request){
msg->auth_request.signature_state = SSH_PUBLICKEY_STATE_VALID;
}
ssh_string_free(algo);
goto end;
}
#ifdef WITH_GSSAPI