reversed test in nss_init
Herb Lewis
hlewis at panasas.com
Tue Sep 9 23:47:16 GMT 2008
$ git-diff --unified=10
diff --git a/source/winbindd/nss_info.c b/source/winbindd/nss_info.c
index daa3dd0..96a2c77 100644
--- a/source/winbindd/nss_info.c
+++ b/source/winbindd/nss_info.c
@@ -156,21 +156,21 @@ static bool parse_nss_parm( const char *config,
char **backend, char **domain )
DEBUG(0,("nss_init: failed to parse \"%s\"!\n",
nss_list[i]));
continue;
}
/* validate the backend */
if ( (nss_backend = nss_get_backend( backend )) == NULL ) {
/* attempt to register the backend */
status = smb_probe_module( "nss_info", backend );
- if ( !NT_STATUS_IS_OK(status) ) {
+ if ( NT_STATUS_IS_OK(status) ) {
continue;
}
/* try again */
if ( (nss_backend = nss_get_backend( backend ))
== NULL ) {
DEBUG(0,("nss_init: unregistered
backend %s!. Skipping\n",
backend));
continue;
}
More information about the samba-technical
mailing list