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

misc: Use strtoul in ssh_analyze_banner()

Thanks to Tilo Eckert.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2017-06-28 12:29:53 +02:00
parent 87527adada
commit 0cb2974bd8

View File

@@ -862,7 +862,7 @@ int ssh_analyze_banner(ssh_session session, int server, int *ssh1, int *ssh2) {
banner);
return -1;
}
minor = strtol(openssh + 10, (char **) NULL, 10);
minor = strtoul(openssh + 10, (char **) NULL, 10);
if (minor > 100) {
ssh_set_error(session,
SSH_FATAL,