diff options
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/auth-options.c b/auth-options.c index 04d2f085f..57e335f3f 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: auth-options.c,v 1.12 2001/02/03 10:08:36 markus Exp $"); | 13 | RCSID("$OpenBSD: auth-options.c,v 1.13 2001/02/09 13:38:07 markus Exp $"); |
14 | 14 | ||
15 | #include "packet.h" | 15 | #include "packet.h" |
16 | #include "xmalloc.h" | 16 | #include "xmalloc.h" |
@@ -61,12 +61,13 @@ int | |||
61 | auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) | 61 | auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) |
62 | { | 62 | { |
63 | const char *cp; | 63 | const char *cp; |
64 | if (!opts) | ||
65 | return 1; | ||
66 | 64 | ||
67 | /* reset options */ | 65 | /* reset options */ |
68 | auth_clear_options(); | 66 | auth_clear_options(); |
69 | 67 | ||
68 | if (!opts) | ||
69 | return 1; | ||
70 | |||
70 | while (*opts && *opts != ' ' && *opts != '\t') { | 71 | while (*opts && *opts != ' ' && *opts != '\t') { |
71 | cp = "no-port-forwarding"; | 72 | cp = "no-port-forwarding"; |
72 | if (strncasecmp(opts, cp, strlen(cp)) == 0) { | 73 | if (strncasecmp(opts, cp, strlen(cp)) == 0) { |