From 5de430441f3daaf841965ca76f8c21c926b27d8a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 2 Sep 2007 19:56:03 +0000 Subject: r24908: we should not set s = NULL as we set it to talloc_strdup("") before metze (This used to be commit 2246c018b6b99ae38a4a612309069fc919350ba6) --- source4/librpc/rpc/dcerpc_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 11f5451891..440625715b 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -255,10 +255,9 @@ char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_binding *b) if (t_name != NULL) { s = talloc_asprintf_append(s, "%s:", t_name); - if (s == NULL) + if (s == NULL) { return NULL; - } else { - s = NULL; + } } if (b->host) { -- cgit