diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-31 16:16:24 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-31 17:28:53 +0200 |
commit | f511ccbc429aacff3882e12366bae2aebf9d768a (patch) | |
tree | cb3af35ac3cecb8668330c1577673739e37b259b /source3/winbindd/wb_ping.c | |
parent | a3bcbd177537e5da437974e64bbd07d88c087fa2 (diff) | |
download | samba-f511ccbc429aacff3882e12366bae2aebf9d768a.tar.gz |
Slightly restructure the async winbind request calling convention
The main loop now allocates the response, this has to be done everywhere
Diffstat (limited to 'source3/winbindd/wb_ping.c')
-rw-r--r-- | source3/winbindd/wb_ping.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/winbindd/wb_ping.c b/source3/winbindd/wb_ping.c index 56ecc6671c..1201398437 100644 --- a/source3/winbindd/wb_ping.c +++ b/source3/winbindd/wb_ping.c @@ -39,15 +39,7 @@ struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, return req; } -NTSTATUS wb_ping_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, - struct winbindd_response **presp) +NTSTATUS wb_ping_recv(struct tevent_req *req, struct winbindd_response *presp) { - struct winbindd_response *resp; - - resp = talloc_zero(mem_ctx, struct winbindd_response); - if (resp == NULL) { - return NT_STATUS_NO_MEMORY; - } - *presp = resp; return NT_STATUS_OK; } |