diff options
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index c484a2618c..55818e28fe 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -185,7 +185,7 @@ static const struct { */ const char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_binding *b) { - char *s = NULL; + char *s = talloc_strdup(mem_ctx, ""); int i; const char *t_name=NULL; @@ -199,7 +199,8 @@ const char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_bindi } if (!uuid_all_zero(&b->object)) { - s = talloc_asprintf(mem_ctx, "%s@", GUID_string(mem_ctx, &b->object)); + s = talloc_asprintf(s, "%s@", + GUID_string(mem_ctx, &b->object)); } s = talloc_asprintf_append(s, "%s:", t_name); |