summaryrefslogtreecommitdiff
path: root/source3/namedbname.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/namedbname.c')
-rw-r--r--source3/namedbname.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c
index 8f5514be53..c1ec92ea00 100644
--- a/source3/namedbname.c
+++ b/source3/namedbname.c
@@ -149,10 +149,11 @@ struct name_record *find_name(struct name_record *n,
if (name_equal(&ret->name,name))
{
/* self search: self names only */
- if ((search&FIND_SELF) == FIND_SELF &&
- ret->source != SELF)
+ if ((search&FIND_SELF) == FIND_SELF && ret->source != SELF)
+ {
continue;
-
+ }
+
return ret;
}
}