diff options
Diffstat (limited to 'source3/lib/access.c')
-rw-r--r-- | source3/lib/access.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c index 31a48d09d3..599cb5ca7e 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -209,6 +209,10 @@ static int string_match(char *tok,char *s) if (!mydomain) yp_get_default_domain(&mydomain); + if (!mydomain) { + DEBUG(0,("Unable to get default yp domain.\n")); + return NO; + } if (!(hostname = strdup(s))) { DEBUG(1,("out of memory for strdup!\n")); return NO; |