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:
parent
7fd237c545
commit
8331fbe735
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user