From 4c69c151dbcab30d53ece70f5e23c5971320a5c8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 19 Aug 2009 14:22:09 +0200 Subject: s3:dsgetdcname: Fix a crash in dsgetdcname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When returning NT_STATUS_OK we can't leave *info == NULL, this crashes in is_closest_site called from dsgetdcname(). Signed-off-by: Günther Deschner --- source3/libsmb/dsgetdcname.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/libsmb') diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index c089fdf06a..5279b8faf1 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -412,6 +412,8 @@ static NTSTATUS dsgetdcname_cached(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(status)) { return status; } + + *info = dc_info; } return status; -- cgit