mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
fix: use strcmp instead of strncmp to avoid prefix match
Signed-off-by: Gauravsingh Sisodia <xaerru@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Jakub Jelen
parent
a0707afc3e
commit
d0e5cf78d0
@@ -373,7 +373,7 @@ int ssh_server_gss_dh_process_init(ssh_session session, ssh_buffer packet)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(crypto->kex_methods[SSH_HOSTKEYS], "null", 4) != 0) {
|
if (strcmp(crypto->kex_methods[SSH_HOSTKEYS], "null") != 0) {
|
||||||
rc =
|
rc =
|
||||||
ssh_dh_get_next_server_publickey_blob(session, &server_pubkey_blob);
|
ssh_dh_get_next_server_publickey_blob(session, &server_pubkey_blob);
|
||||||
if (rc != SSH_OK) {
|
if (rc != SSH_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user