1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

messaging3: Make "presult" optional in messaging_read_recv

Callers might not be interested in the rec, just the fact that something
arrived

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2014-04-29 14:12:26 +02:00
parent 3af130ea93
commit 8117dcd5fb

View File

@ -550,7 +550,9 @@ int messaging_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
tevent_req_received(req);
return err;
}
*presult = talloc_move(mem_ctx, &state->rec);
if (presult != NULL) {
*presult = talloc_move(mem_ctx, &state->rec);
}
return 0;
}