From: Volker Lendecke Date: Sun, 4 Feb 2018 15:48:23 +0000 (+0000) Subject: net: Slightly simplify net_lookup_dsgetdcname() X-Git-Tag: tevent-0.9.36~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46148e657f5d53b0d83dbcead9a8b8d0bd0baf21;p=thirdparty%2Fsamba.git net: Slightly simplify net_lookup_dsgetdcname() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index 5ac1ddaaef0..597e098e2e1 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -409,8 +409,8 @@ static int net_lookup_dsgetdcname(struct net_context *c, int argc, const char ** sscanf(argv[1], "%x", &flags); } - if (!flags) { - flags |= DS_DIRECTORY_SERVICE_REQUIRED; + if (flags == 0) { + flags = DS_DIRECTORY_SERVICE_REQUIRED; } if (argc == 3) {