diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-05-23 11:52:16 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-05-24 09:42:24 +1000 |
commit | 34eab45cba6989b66d37c7eb74d97846014ec4eb (patch) | |
tree | 615f2a5b9c1e0d41af402009013654b804294865 /examples/nss/nss_winbind.h | |
parent | e8601c02ba59fb12b46919a50702365ceee6aee1 (diff) | |
download | samba-34eab45cba6989b66d37c7eb74d97846014ec4eb.tar.gz samba-34eab45cba6989b66d37c7eb74d97846014ec4eb.tar.bz2 samba-34eab45cba6989b66d37c7eb74d97846014ec4eb.zip |
dlz_bind9: Fix the named crash on reloading named
When reloading zones, named first creates new zone instance and then shuts down
the old instance. Since ldb layer, keeps the same LDB open, talloc_free() on samdb
handle, causes talloc "access after use" error.
This patch keeps only single context (dlz_bind9_data) and uses reference counting
to decide when to actually free the context. Since samdb handle is reused, use
talloc_unlink() instead of talloc_free() on samdb handle.
Diffstat (limited to 'examples/nss/nss_winbind.h')
0 files changed, 0 insertions, 0 deletions