r24908: we should not set s = NULL as we set it to talloc_strdup("") before
authorStefan Metzmacher <metze@samba.org>
Sun, 2 Sep 2007 19:56:03 +0000 (19:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:03:36 +0000 (15:03 -0500)
metze

source/librpc/rpc/dcerpc_util.c

index 11f5451891ec161b3cfbae204f21bdde6d7a6a69..440625715b4fc2a53abddc98c1add5ed5efacb3a 100644 (file)
@@ -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) {