Move the manipulation of site_name into the caller function dsgetdcname().
authorJeremy Allison <jra@samba.org>
Tue, 3 Sep 2013 19:08:46 +0000 (12:08 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 Sep 2013 08:54:03 +0000 (10:54 +0200)
commitc968f9cb46b44a4d1b257a89381898d16086ae26
tree333ad945926bf2ae3d8da0888a76f6871dc993ae
parentac4ce44d787f448e8dce7b2eca558cecdc75499e
Move the manipulation of site_name into the caller function dsgetdcname().

Leave dsgetdcname_internal() only using const char *site_name.

Bug 5917 - Samba does not work on site with Read Only Domain Controller

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Richard Sharpe <rsharpe@samba.org>
(cherry picked from commit 181c11066bd53b07015a199f56eb71182e89ff71)
source3/libsmb/dsgetdcname.c