messages: Fix memory leak in ssh_packet_userauth_request

Found by AddressSanitizer.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit f8fc0b9dfb)
This commit is contained in:
Andreas Schneider
2018-09-01 20:43:15 +02:00
parent 6751c0e2c3
commit 4d34890624

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