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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user