[PATCH] Use talloc_get_type_abort
Ralph Böhme
rb at sernet.de
Tue Apr 21 11:21:52 MDT 2015
Hi
small patch to make use of talloc_get_type_abort().
Please review and push if ok. Thanks!
-Ralph
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de
-------------- next part --------------
From 271a073134adc2d98c636a92e3cc69e9b94ce3f8 Mon Sep 17 00:00:00 2001
From: Ralph Boehme <slow at samba.org>
Date: Tue, 21 Apr 2015 18:58:09 +0200
Subject: [PATCH] s3:lib: use talloc_get_type_abort
Signed-off-by: Ralph Boehme <slow at samba.org>
---
source3/lib/util_sock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 682d964..c4de85d 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -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);
--
2.1.0
More information about the samba-technical
mailing list