s3:lib: use talloc_get_type_abort
authorRalph Boehme <slow@samba.org>
Tue, 21 Apr 2015 16:58:09 +0000 (18:58 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Apr 2015 20:14:07 +0000 (22:14 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Apr 21 22:14:07 CEST 2015 on sn-devel-104

source3/lib/util_sock.c

index 682d964b30c8eee95fa7c9d467ed3ad0076625b7..c4de85dd130beb94c04d9642d79f8b74f6cfdd75 100644 (file)
@@ -1363,7 +1363,7 @@ struct tevent_req *getaddrinfo_send(TALLOC_CTX *mem_ctx,
 static void getaddrinfo_do(void *private_data)
 {
        struct getaddrinfo_state *state =
-               (struct getaddrinfo_state *)private_data;
+               talloc_get_type_abort(private_data, struct getaddrinfo_state);
 
        state->ret = getaddrinfo(state->node, state->service, state->hints,
                                 &state->res);