diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-10-21 18:23:18 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-10-21 22:43:57 +1100 |
commit | fa2e04b64004f24bcac51a44ce37b8923480b819 (patch) | |
tree | 97c69633dabc95ec76e150646747900b915398b4 /source4/lib/ldb/ldb_map/ldb_map_private.h | |
parent | 96ec45309a367a00234f7c62c2d30c64ae95b680 (diff) | |
download | samba-fa2e04b64004f24bcac51a44ce37b8923480b819.tar.gz samba-fa2e04b64004f24bcac51a44ce37b8923480b819.tar.bz2 samba-fa2e04b64004f24bcac51a44ce37b8923480b819.zip |
s4:ldb_map Fix use-after-free of memory in ldb_map
We need to keep the old 'ares' from the remote server around so we can forward
it back to the caller. We can't send the same controls (from the last search
entry) twice (and it makes no sense anyway).
Andrew Bartlett
Diffstat (limited to 'source4/lib/ldb/ldb_map/ldb_map_private.h')
-rw-r--r-- | source4/lib/ldb/ldb_map/ldb_map_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_private.h b/source4/lib/ldb/ldb_map/ldb_map_private.h index 612d215ae9..1ea9e5871f 100644 --- a/source4/lib/ldb/ldb_map/ldb_map_private.h +++ b/source4/lib/ldb/ldb_map/ldb_map_private.h @@ -37,6 +37,9 @@ struct map_context { struct map_reply *r_list; struct map_reply *r_current; + + /* The response continaing any controls the remote server gave */ + struct ldb_reply *remote_done_ares; }; /* Common operations |