summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--auth-options.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b371d11e..7d7de3dd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -70,6 +70,9 @@
70 which in turn required some things to be converted from u_short => int 70 which in turn required some things to be converted from u_short => int
71 make use of int vs. u_short consistent in some other places too 71 make use of int vs. u_short consistent in some other places too
72 feedback & ok markus@ 72 feedback & ok markus@
73 - djm@cvs.openbsd.org 2009/01/22 10:09:16
74 [auth-options.c]
75 another chunk of a2port() diff that got away. wtfdjm??
73 76
7420090107 7720090107
75 - (djm) [uidswap.c] bz#1412: Support >16 supplemental groups in OS X. 78 - (djm) [uidswap.c] bz#1412: Support >16 supplemental groups in OS X.
@@ -5079,5 +5082,5 @@
5079 OpenServer 6 and add osr5bigcrypt support so when someone migrates 5082 OpenServer 6 and add osr5bigcrypt support so when someone migrates
5080 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 5083 passwords between UnixWare and OpenServer they will still work. OK dtucker@
5081 5084
5082$Id: ChangeLog,v 1.5175 2009/01/28 05:31:22 djm Exp $ 5085$Id: ChangeLog,v 1.5176 2009/01/28 05:33:01 djm Exp $
5083 5086
diff --git a/auth-options.c b/auth-options.c
index 25361455e..ab085c233 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth-options.c,v 1.43 2008/06/10 23:06:19 djm Exp $ */ 1/* $OpenBSD: auth-options.c,v 1.44 2009/01/22 10:09:16 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -255,7 +255,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
255 cp = "permitopen=\""; 255 cp = "permitopen=\"";
256 if (strncasecmp(opts, cp, strlen(cp)) == 0) { 256 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
257 char *host, *p; 257 char *host, *p;
258 u_short port; 258 int port;
259 char *patterns = xmalloc(strlen(opts) + 1); 259 char *patterns = xmalloc(strlen(opts) + 1);
260 260
261 opts += strlen(cp); 261 opts += strlen(cp);
@@ -293,7 +293,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
293 goto bad_option; 293 goto bad_option;
294 } 294 }
295 host = cleanhostname(host); 295 host = cleanhostname(host);
296 if (p == NULL || (port = a2port(p)) == 0) { 296 if (p == NULL || (port = a2port(p)) <= 0) {
297 debug("%.100s, line %lu: Bad permitopen port " 297 debug("%.100s, line %lu: Bad permitopen port "
298 "<%.100s>", file, linenum, p ? p : ""); 298 "<%.100s>", file, linenum, p ? p : "");
299 auth_debug_add("%.100s, line %lu: " 299 auth_debug_add("%.100s, line %lu: "