1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

net: abort when lp_realm is not set in net_ads_leave().

Guenther
(This used to be commit 53735edcbb059e73c51ae17d4ff75d2a4dee53e5)
This commit is contained in:
Günther Deschner 2008-04-14 22:58:38 +02:00
parent a31281a751
commit 4122dabbf9

View File

@ -816,6 +816,11 @@ static int net_ads_leave(int argc, const char **argv)
struct libnet_UnjoinCtx *r = NULL;
WERROR werr;
if (!*lp_realm()) {
d_fprintf(stderr, "No realm set, are we joined ?\n");
return -1;
}
if (!(ctx = talloc_init("net_ads_leave"))) {
d_fprintf(stderr, "Could not initialise talloc context.\n");
return -1;