Obviously correct typo bugfix from Lin Li <linl@xandros.com>.
authorJeremy Allison <jra@samba.org>
Wed, 17 Sep 2003 17:57:18 +0000 (17:57 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 17 Sep 2003 17:57:18 +0000 (17:57 +0000)
Jeremy.

source/nsswitch/winbindd_pam.c

index 21ae6478def825b8c3610a9c1420b439fbf40e74..ea2868b2cf9b697e472ef3922834e84332357114 100644 (file)
@@ -95,7 +95,7 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
        /* Parse domain and username */
        
        parse_domain_user(state->request.data.auth.user, name_domain, name_user);
-       if ( !name_domain ) {
+       if ( !*name_domain ) {
                DEBUG(5,("no domain separator (%s) in username (%s) - failing auth\n", lp_winbind_separator(), state->request.data.auth.user));
                result = NT_STATUS_INVALID_PARAMETER;
                goto done;