tevent: avoid calling talloc_get_name(NULL) in tevent_req_default_print()
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Jul 2017 12:16:44 +0000 (14:16 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 21 Jul 2017 21:31:03 +0000 (23:31 +0200)
commit21b56ffd983cc0b982bea55866bfa84c79133503
tree78bea8a6211ca07c9392f9a78b39caf19ce86a3a
parentbe7f6f4d5d4bba6f3017cbc49700fd64c9fa86f1
tevent: avoid calling talloc_get_name(NULL) in tevent_req_default_print()

We have the same information available under req->internal.private_type.

This way it's possible to call tevent_req_print() after
tevent_req_received() was called.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/tevent/tevent_req.c