1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

tevent: handle passing req = NULL to tevent_req_print()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit ca3e98488a45aa143e4ba454b4ba8763f09a6f50)
This commit is contained in:
Stefan Metzmacher 2017-07-20 14:20:03 +02:00
parent 3d87c0660e
commit ce417f5cee

View File

@ -45,6 +45,10 @@ char *tevent_req_default_print(struct tevent_req *req, TALLOC_CTX *mem_ctx)
char *tevent_req_print(TALLOC_CTX *mem_ctx, struct tevent_req *req)
{
if (req == NULL) {
return talloc_strdup(mem_ctx, "tevent_req[NULL]");
}
if (!req->private_print) {
return tevent_req_default_print(req, mem_ctx);
}