s3:winbind: Fix the talloc hierarchy in wb_queryuser_done
authorVolker Lendecke <vl@samba.org>
Sat, 22 Aug 2009 16:35:52 +0000 (18:35 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 23 Aug 2009 08:19:32 +0000 (10:19 +0200)
commita09b9ed9e2d4ce02dffa156049f266ba5bb59c49
treee72d7b0cc444996830501183ed3df9dfaa93f805
parentda9356711b14d7475bcfe4cf0bb1874c018db276
s3:winbind: Fix the talloc hierarchy in wb_queryuser_done

We need to return state->userinfo beyond the end of wb_queryuser_recv, so the
unmarshalled strings are children of that, not the state that is lost sooner.

Metze, this scheme works fine as long as we only have a single malloc'ed
entity that is returned. I think we need a different scheme in the future
when we might have more than one independent object to be returned.
source3/winbindd/wb_queryuser.c