aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 6ff81ec7..1e09a25d 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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,