Make sure response->extra_data.data is always cleared out
authorMatthew Newton <mcn4@leicester.ac.uk>
Thu, 8 Jan 2015 15:11:15 +0000 (15:11 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 9 Jan 2015 20:21:07 +0000 (21:21 +0100)
commit764cfda2804d036e418365ceac92c2cb8a07577a
treede7d27921b3ce8da1d9f8dfa16c7b6bd90881aac
parentfb35a22b7aae07bce233d5539c5048b308271010
Make sure response->extra_data.data is always cleared out

Otherwise a bad read can sometimes cause the function to return -1 with
an invalid pointer in extra_data.data, which is attempted to be freed
by the caller (e.g. libwbclient/wbc_pam.c wbcAuthenticateUserEx())
by calling winbindd_free_response().

Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/wb_common.c