From: Jeremy Allison Date: Thu, 10 May 2012 07:53:57 +0000 (+0200) Subject: s3-pam_winbind: Fix the build. X-Git-Tag: samba-3.5.16~28 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=b6623acc011f8d33f184647c2846c1abac9b8b92 s3-pam_winbind: Fix the build. Jeremy Part of a fix for bug #8915 (Samba fails to build with iniparser-3.0.0 and iniparser-3.1.0). (cherry picked from commit 00c901a5be83bfe4c70eccbe7fa2a35d3d2a368d) (cherry picked from commit 19fc7d6733a61417477dcc4b53a24a0c1bc40187) --- diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index a344186f067..caae5896c45 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -437,13 +437,13 @@ static int _pam_parse(const pam_handle_t *pamh, ctrl |= WINBIND_SILENT; } - if (iniparser_getstring(d, CONST_DISCARD(char *, "global:krb5_ccache_type")) != NULL) { + if (iniparser_getstring(d, CONST_DISCARD(char *, "global:krb5_ccache_type"), NULL) != NULL) { ctrl |= WINBIND_KRB5_CCACHE_TYPE; } - if ((iniparser_getstring(d, CONST_DISCARD(char *, "global:require-membership-of")) + if ((iniparser_getstring(d, CONST_DISCARD(char *, "global:require-membership-of"), NULL) != NULL) || - (iniparser_getstring(d, CONST_DISCARD(char *, "global:require_membership_of")) + (iniparser_getstring(d, CONST_DISCARD(char *, "global:require_membership_of"), NULL) != NULL)) { ctrl |= WINBIND_REQUIRED_MEMBERSHIP; }