git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ea287
)
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
Günther Deschner
<gd@samba.org>
Thu, 20 Aug 2009 12:26:46 +0000
(14:26 +0200)
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>
source3/libsmb/dsgetdcname.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/dsgetdcname.c
b/source3/libsmb/dsgetdcname.c
index c089fdf06a83ea040ac1d0de48513f08ade302e3..5279b8faf1fc169cfee9431700e588be7ead5d82 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;