1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

net: exit early in net_ads_join() if the domain is not set.

Guenther
This commit is contained in:
Günther Deschner 2008-04-14 16:16:25 +02:00
parent 7fd237c545
commit 8331fbe735

View File

@ -1159,6 +1159,12 @@ int net_ads_join(int argc, const char **argv)
}
}
if (!*domain) {
d_fprintf(stderr, "Please supply a valid domain name\n");
werr = WERR_INVALID_PARAM;
goto fail;
}
/* Do the domain join here */
r->in.domain_name = domain;