1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

ctdb-common: Use correct return type for tevent_queue_add_entry

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit b977ded38a79e1eadd6965e8b7fd49f86322b4d6)
This commit is contained in:
Amitay Isaacs 2018-07-03 14:08:22 +10:00 committed by Karolin Seeger
parent a95e5286a4
commit 4561e668a0

View File

@ -275,7 +275,7 @@ int sock_queue_write(struct sock_queue *queue, uint8_t *buf, size_t buflen)
{
struct tevent_req *req;
struct sock_queue_write_state *state;
bool status;
struct tevent_queue_entry *qentry;
if (buflen >= INT32_MAX) {
return -1;
@ -289,9 +289,9 @@ int sock_queue_write(struct sock_queue *queue, uint8_t *buf, size_t buflen)
state->pkt = buf;
state->pkt_size = (uint32_t)buflen;
status = tevent_queue_add_entry(queue->queue, queue->ev, req,
qentry = tevent_queue_add_entry(queue->queue, queue->ev, req,
sock_queue_trigger, queue);
if (! status) {
if (qentry == NULL) {
talloc_free(req);
return -1;
}