mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
lib/async_req: s/result/req/ in read_packet_send()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
0c11096956
commit
4f05f68abc
@ -396,12 +396,12 @@ struct tevent_req *read_packet_send(TALLOC_CTX *mem_ctx,
|
|||||||
void *private_data),
|
void *private_data),
|
||||||
void *private_data)
|
void *private_data)
|
||||||
{
|
{
|
||||||
struct tevent_req *result;
|
struct tevent_req *req;
|
||||||
struct read_packet_state *state;
|
struct read_packet_state *state;
|
||||||
struct tevent_fd *fde;
|
struct tevent_fd *fde;
|
||||||
|
|
||||||
result = tevent_req_create(mem_ctx, &state, struct read_packet_state);
|
req = tevent_req_create(mem_ctx, &state, struct read_packet_state);
|
||||||
if (result == NULL) {
|
if (req == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
state->fd = fd;
|
state->fd = fd;
|
||||||
@ -415,13 +415,13 @@ struct tevent_req *read_packet_send(TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, read_packet_handler,
|
fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, read_packet_handler,
|
||||||
result);
|
req);
|
||||||
if (fde == NULL) {
|
if (fde == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
return result;
|
return req;
|
||||||
fail:
|
fail:
|
||||||
TALLOC_FREE(result);
|
TALLOC_FREE(req);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user