git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8496991
)
s3:dsgetdcname: Fix a crash in dsgetdcname
author
Volker Lendecke
<vl@samba.org>
Wed, 19 Aug 2009 12:22:09 +0000
(14:22 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 10 Mar 2010 12:22:05 +0000
(13:22 +0100)
When returning NT_STATUS_OK we can't leave *info == NULL, this crashes
in is_closest_site called from dsgetdcname().
source3/libsmb/dsgetdcname.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/dsgetdcname.c
b/source3/libsmb/dsgetdcname.c
index c57b00afc953a9845a95db865137e676fa43a9e2..e7629f8a54e1e06582e7f6155875d8ac18bc6396 100644
(file)
--- 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;