git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efc993a
)
s3/idmap: Fix out of memory error with Winbind idmap.
author
Sébastien Prud'homme
<sebastien.prudhomme@gmail.com>
Fri, 12 Jun 2009 07:11:57 +0000
(09:11 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 15 Jun 2009 08:12:20 +0000
(10:12 +0200)
This fixes bug #5945.
(cherry picked from commit
a7735416792f8156e53a04af98e7e2dff0b6707d
)
source/winbindd/idmap.c
patch
|
blob
|
history
diff --git
a/source/winbindd/idmap.c
b/source/winbindd/idmap.c
index d601210ecfb59711f36f4221696b62cd760ffb1d..e4fc75ab7221e8e279fdbd89fa1ba19ee1b50926 100644
(file)
--- a/
source/winbindd/idmap.c
+++ b/
source/winbindd/idmap.c
@@
-555,8
+555,12
@@
NTSTATUS idmap_init(void)
* set the destructor for this domain */
talloc_set_destructor(dom, close_domain_destructor);
- dom->params = talloc_strdup(dom, compat_params);
- IDMAP_CHECK_ALLOC(dom->params);
+ if (compat_params) {
+ dom->params = talloc_strdup(dom, compat_params);
+ IDMAP_CHECK_ALLOC(dom->params);
+ } else {
+ dom->params = NULL;
+ }
/* Finally instance a backend copy for this domain */
ret = dom->methods->init(dom);