aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-06-28 12:29:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-06-28 12:29:53 +0200
commit0cb2974bd8c64913fe87caa2e3d7c4dc60c7242e (patch)
tree7b9d09d551664462deddf4b028e04846de775426
parent87527adada9280555fd534d011a11bc7671b67d9 (diff)
downloadlibssh-0cb2974bd8c64913fe87caa2e3d7c4dc60c7242e.tar.gz
libssh-0cb2974bd8c64913fe87caa2e3d7c4dc60c7242e.tar.xz
libssh-0cb2974bd8c64913fe87caa2e3d7c4dc60c7242e.zip
misc: Use strtoul in ssh_analyze_banner()
Thanks to Tilo Eckert. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-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,