git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77990c1
)
s4-dsdb: Improve memory handling in kccsrv_add_connection()
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 14 Aug 2012 05:58:59 +0000
(15:58 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 14 Aug 2012 06:27:19 +0000
(08:27 +0200)
source4/dsdb/kcc/kcc_connection.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/kcc/kcc_connection.c
b/source4/dsdb/kcc/kcc_connection.c
index a5894c1a88884ffbb8e8683d6bcbb06cb8cf8f18..266f753c37dce9f3f281dba917c830ffd0232111 100644
(file)
--- a/
source4/dsdb/kcc/kcc_connection.c
+++ b/
source4/dsdb/kcc/kcc_connection.c
@@
-46,6
+46,11
@@
static int kccsrv_add_connection(struct kccsrv_service *s,
bool ok;
tmp_ctx = talloc_new(s);
+ if (!tmp_ctx) {
+ DEBUG(0, ("failed to talloc\n"));
+ ret = LDB_ERR_OPERATIONS_ERROR;
+ goto done;
+ }
new_dn = samdb_ntds_settings_dn(s->samdb);
if (!new_dn) {
DEBUG(0, ("failed to find NTDS settings\n"));