summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-19 14:22:09 +0200
committerGünther Deschner <gd@samba.org>2009-08-20 14:26:46 +0200
commit4c69c151dbcab30d53ece70f5e23c5971320a5c8 (patch)
treef43330286f05cb6fad0943a8c2f4b1fc0295553c
parent68ea2876172a76761a678bcfbb17ab64a7db706d (diff)
downloadsamba-4c69c151dbcab30d53ece70f5e23c5971320a5c8.tar.gz
samba-4c69c151dbcab30d53ece70f5e23c5971320a5c8.tar.bz2
samba-4c69c151dbcab30d53ece70f5e23c5971320a5c8.zip
s3:dsgetdcname: Fix a crash in dsgetdcname
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 <gd@samba.org>
-rw-r--r--source3/libsmb/dsgetdcname.c2
1 files changed, 2 insertions, 0 deletions
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;