cldap: prevent crashes when freeing cldap socket
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 04:24:51 +0000 (14:24 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:36 +0000 (15:39 +1000)
commit5a0bb2234e86c6718c9dbfd7a087ab7c1b7f6bb4
tree10860f43eab9d2f23636ece55ee04ae7ce6402d9
parentea223baabc599415bf8da14a53cb77632343bc82
cldap: prevent crashes when freeing cldap socket

As a callback may destroy the cldap socket we need to ensure we don't
reference the cldap structure after the callback

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
libcli/cldap/cldap.c