summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-22 17:52:56 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-24 13:43:33 +0200
commit6c3c25b5c1e4981687556b7a8e56c8460d69deb4 (patch)
tree21d9a81b75dcd9f3780f1747849dce8ab6abec88 /source3/lib
parentdc7d0f688317593ffa58badcc0ed7b10b2047c5e (diff)
downloadsamba-6c3c25b5c1e4981687556b7a8e56c8460d69deb4.tar.gz
samba-6c3c25b5c1e4981687556b7a8e56c8460d69deb4.tar.bz2
samba-6c3c25b5c1e4981687556b7a8e56c8460d69deb4.zip
s3:lib: use server_id_is_disconnected() in serverids_exist()
metze
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/serverid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 8d6dc1f889..61860977cf 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -300,6 +300,10 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results)
for (idx=0; idx<num_ids; idx++) {
results[idx] = false;
+ if (server_id_is_disconnected(&ids[idx])) {
+ continue;
+ }
+
if (procid_is_me(&ids[idx])) {
results[idx] = true;
continue;