X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/9995aaa38ca448e463fb6806bab7ec9dbd4be6dc..c12cf250eb723e0bd7e34a539887e42f03939023:/ssh-keyscan.c?ds=inline diff --git a/ssh-keyscan.c b/ssh-keyscan.c index c6ec3507..7afe446a 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keyscan.c,v 1.77 2008/11/01 11:14:36 sobrado Exp $ */ +/* $OpenBSD: ssh-keyscan.c,v 1.81 2010/01/09 23:04:13 dtucker Exp $ */ /* * Copyright 1995, 1996 by David Mazieres . * @@ -748,7 +748,7 @@ main(int argc, char **argv) break; case 'p': ssh_port = a2port(optarg); - if (ssh_port == 0) { + if (ssh_port <= 0) { fprintf(stderr, "Bad port '%s'\n", optarg); exit(1); }