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:
7f3cdfe
)
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>
Thu, 20 Aug 2009 14:52:03 +0000
(16:52 +0200)
When returning NT_STATUS_OK we can't leave *info == NULL, this crashes
in is_closest_site called from dsgetdcname().
source/libsmb/dsgetdcname.c
patch
|
blob
|
history
diff --git
a/source/libsmb/dsgetdcname.c
b/source/libsmb/dsgetdcname.c
index 8c20d967410f7ba2053eededb6a44a6b2561b4b3..82883f59b2c0bf4586b87dc31ab1887b304d4f13 100644
(file)
--- a/
source/libsmb/dsgetdcname.c
+++ b/
source/libsmb/dsgetdcname.c
@@
-563,6
+563,8
@@
static NTSTATUS dsgetdcname_cached(TALLOC_CTX *mem_ctx,
if (!NT_STATUS_IS_OK(status)) {
return status;
}
+
+ *info = dc_info;
}
return status;