diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-10 22:27:19 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-10 22:27:19 +0000 |
commit | 36d7bd00f9fe2b704e85d6f90da18835412b11e0 (patch) | |
tree | f09b9807b9268bf66e8a360844faf0dc7d1a5fe1 /auth-options.c | |
parent | a1ebd89d243fb079b6c3b89e14dd6af47ef11161 (diff) | |
download | openssh-git-36d7bd00f9fe2b704e85d6f90da18835412b11e0.tar.gz |
- markus@cvs.openbsd.org 2001/02/09 13:38:07
[auth-options.c]
reset options if no option is given; from han.holl@prismant.nl
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 04d2f085..57e335f3 100644 --- a/auth-options.c +++ b/auth-options.c @@ -10,7 +10,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth-options.c,v 1.12 2001/02/03 10:08:36 markus Exp $"); +RCSID("$OpenBSD: auth-options.c,v 1.13 2001/02/09 13:38:07 markus Exp $"); #include "packet.h" #include "xmalloc.h" @@ -61,12 +61,13 @@ int auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) { const char *cp; - if (!opts) - return 1; /* reset options */ auth_clear_options(); + if (!opts) + return 1; + while (*opts && *opts != ' ' && *opts != '\t') { cp = "no-port-forwarding"; if (strncasecmp(opts, cp, strlen(cp)) == 0) { |