s3: Actually stop guessing in lookup_name if we were given a domain
authorVolker Lendecke <vl@samba.org>
Thu, 8 Sep 2011 12:54:57 +0000 (14:54 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Oct 2011 13:21:10 +0000 (15:21 +0200)
source3/passdb/lookup_sid.c

index a8c30835d172038156eb66f6fd7757fdef36b71a..29b86c01155fcb0fc27986fa6a30620c5e75a61f 100644 (file)
@@ -150,6 +150,11 @@ bool lookup_name(TALLOC_CTX *mem_ctx,
                return false;
        }
 
+       if (domain[0] != '\0') {
+               TALLOC_FREE(tmp_ctx);
+               return false;
+       }
+
        DEBUG(10, ("guesswork for domain [%s] begins\n", domain));
 
        /* Now the guesswork begins, we haven't been given an explicit