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>
Wed, 18 Sep 2013 08:41:22 +0000 (10:41 +0200)
commit4a46c3fb1ec1ae65b08b443d1a9b7aa09f3dbbc8
tree2d1c3fcc5ee1138e337b57ca5458b3ab5781f4b3
parent6b03f5c490be465112df7dfab0d225431410c096
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)
(cherry picked from commit c968f9cb46b44a4d1b257a89381898d16086ae26)
source3/libsmb/dsgetdcname.c