s3-libnetapi Don't create a talloc_stackframe() in a global variable
commita37de9a95974c138d264d9cb0c7829bb426bb2d6
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 May 2011 20:08:36 +0000 (10 22:08 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 May 2011 16:50:23 +0000 (13 18:50 +0200)
tree50d0a69eeac2de49cc193d094376ddf259f0d897
parent5db0cd55d4db9cc71f32dc0097e2f014c22967bc
s3-libnetapi Don't create a talloc_stackframe() in a global variable

This also ensures that libnetapi_free() invalidates the global
stat_ctx variable, and changes the API so that the behaviour of the
error string routines is to consistently return a allocated string.

Pair-Programmed-With: Günther Deschner <gd@samba.org>

Andrew Bartlett
source3/lib/netapi/netapi.c
source3/lib/netapi/netapi.h