namequery: remove dead code
authorUri Simchoni <urisimchoni@gmail.com>
Mon, 8 Jun 2015 05:42:58 +0000 (08:42 +0300)
committerJeremy Allison <jra@samba.org>
Mon, 15 Jun 2015 23:29:24 +0000 (01:29 +0200)
commit625550c32a2ff3fcfcfd4e95a13315bf04462d8e
tree1dd84559df7923bf4d377d2254996691aa74cfb1
parentdcdf2d6f275f4e9ed5fa062ffc173956d2aba4dc
namequery: remove dead code

When composing the list of servers out of the server affinity cache
and "password server" parameter, there's fallback to DNS-SRV-record-
based search if the "password server" + session affinity yield an empty
list. However:
1. The way the code is written, it never gets executed because the empty list
   is not an empty string (it contains a comma)
2. This fallback is doe in any case just a few lines down the function

Therefore this patch simply removes this fallback code.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libsmb/namequery.c