git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
093871d
)
net: Slightly simplify net_lookup_dsgetdcname()
author
Volker Lendecke
<vl@samba.org>
Sun, 4 Feb 2018 15:48:23 +0000
(15:48 +0000)
committer
Ralph Boehme
<slow@samba.org>
Tue, 13 Feb 2018 15:42:22 +0000
(16:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/net_lookup.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_lookup.c
b/source3/utils/net_lookup.c
index 5ac1ddaaef073b5feff014b185fdb8ea3c2716b0..597e098e2e1887b11d6a76ab2c32e5a97dc78b0b 100644
(file)
--- 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) {