summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-12-18 22:10:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:36 -0500
commitfb6d54dbabefdb11c33125988b03ccf4080658e4 (patch)
treeb88991a38c452a1347978faf5744ca339e8a7e57 /source3
parent911413e7d7020e429d15de52245e36414ff37a2a (diff)
downloadsamba-fb6d54dbabefdb11c33125988b03ccf4080658e4.tar.gz
samba-fb6d54dbabefdb11c33125988b03ccf4080658e4.tar.bz2
samba-fb6d54dbabefdb11c33125988b03ccf4080658e4.zip
r20249: Fail when parsing invalid options in _pam_parse.
Guenther (This used to be commit f6c9421abdf5731e894cd2ccc1b7431a3c368bbf)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/pam_winbind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 7010936b9b..06d28a02c9 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -174,7 +174,8 @@ config_from_pam:
else if (!strcasecmp(*v, "cached_login"))
ctrl |= WINBIND_CACHED_LOGIN;
else {
- _pam_log(pamh, ctrl, LOG_ERR, "pam_parse: unknown option; %s", *v);
+ _pam_log(pamh, ctrl, LOG_ERR, "pam_parse: unknown option: %s", *v);
+ return -1;
}
}