From fb6d54dbabefdb11c33125988b03ccf4080658e4 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Dec 2006 22:10:09 +0000 Subject: r20249: Fail when parsing invalid options in _pam_parse. Guenther (This used to be commit f6c9421abdf5731e894cd2ccc1b7431a3c368bbf) --- source3/nsswitch/pam_winbind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch') 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; } } -- cgit