From: Jennifer Richards Date: Fri, 1 Jun 2018 21:01:31 +0000 (-0400) Subject: Use cast instead of talloc_get_type_abort for stack-allocated data X-Git-Tag: 3.4.0~1^2~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=ef677b2b70f9e79bc1660bfbacba3a40ce74304f Use cast instead of talloc_get_type_abort for stack-allocated data --- diff --git a/tid/example/tidc_main.c b/tid/example/tidc_main.c index 8ae56ca..4ca3780 100644 --- a/tid/example/tidc_main.c +++ b/tid/example/tidc_main.c @@ -57,7 +57,7 @@ static void tidc_resp_handler (TIDC_INSTANCE * tidc, unsigned char *c_keybuf = NULL; int i; struct timeval tv; - struct tidc_resp_cookie *data = talloc_get_type_abort(cookie, struct tidc_resp_cookie); + struct tidc_resp_cookie *data = (struct tidc_resp_cookie *) cookie; printf ("Response received! Realm = %s, Community = %s.\n", resp->realm->buf, resp->comm->buf);