diff options
author | Tilo Eckert <tilo.eckert@flam.de> | 2018-11-13 12:21:53 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-11-20 07:56:04 +0100 |
commit | 4b6eb05023f415c3c3097a69066c7f2a326d173f (patch) | |
tree | 04c25a0254e2f45579d22e5bada2a7f5fb509542 /src/pki.c | |
parent | 59ada799d765a828ef48897221579d56012bd240 (diff) | |
download | libssh-4b6eb05023f415c3c3097a69066c7f2a326d173f.tar.gz libssh-4b6eb05023f415c3c3097a69066c7f2a326d173f.tar.xz libssh-4b6eb05023f415c3c3097a69066c7f2a326d173f.zip |
packet: Fix timeout on hostkey type mismatch instead of proper error
If the hostkey type was not in the list of acceptable hostkey
types, the function failed to set the error state. Due to the
fact that the calling function ssh_packet_process() does not
handle the SSH_ERROR return code, the newkeys packet from the
server was silently ignored, stalling the connection until a
timeout occurred.
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki.c')
0 files changed, 0 insertions, 0 deletions