libcli/named_pipe_auth: fix memory handling for temporary data
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Jun 2010 14:13:14 +0000 (16:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 21 Jun 2010 14:16:15 +0000 (16:16 +0200)
commit67a24fe9333836e4d33c167ea01f2efdc005bacd
tree1671bc30725ebd2523bd2c9b58fd57a5166e79b5
parente9e80a36e461a0d07cdc9d1be27e60624133b096
libcli/named_pipe_auth: fix memory handling for temporary data

In a tevent_req based function tevent_req_create() should be the first
function! If it fails it's the only reason, why the function
could every return NULL.

And all temporary data belongs to 'state' and gets free'ed by
tevent_req_received() in the _recv function.

metze
libcli/named_pipe_auth/npa_tstream.c