tevent: make use of talloc_get_type_abort() in tevent_req.c
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2013 07:47:27 +0000 (08:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Dec 2013 21:46:09 +0000 (22:46 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/tevent/tevent_req.c

index 581b81869f6bd81b82c3a8f5e2c4f7d52c2c7403..edb8550072934e1fa6ae34d5bbf5e530ef4b87ae 100644 (file)
@@ -167,8 +167,9 @@ static void tevent_req_trigger(struct tevent_context *ev,
                               struct tevent_immediate *im,
                               void *private_data)
 {
-       struct tevent_req *req = talloc_get_type(private_data,
-                                struct tevent_req);
+       struct tevent_req *req =
+               talloc_get_type_abort(private_data,
+               struct tevent_req);
 
        tevent_req_finish(req, req->internal.state,
                          req->internal.finish_location);
@@ -242,8 +243,9 @@ static void tevent_req_timedout(struct tevent_context *ev,
                               struct timeval now,
                               void *private_data)
 {
-       struct tevent_req *req = talloc_get_type(private_data,
-                                struct tevent_req);
+       struct tevent_req *req =
+               talloc_get_type_abort(private_data,
+               struct tevent_req);
 
        TALLOC_FREE(req->internal.timer);