summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-02 19:56:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:36 -0500
commit5de430441f3daaf841965ca76f8c21c926b27d8a (patch)
tree38214eafb8424f2816ec1d59546807e7c8cb330c /source4
parent614d7d0728179c5602a6e6db1f7a41c14090db09 (diff)
downloadsamba-5de430441f3daaf841965ca76f8c21c926b27d8a.tar.gz
samba-5de430441f3daaf841965ca76f8c21c926b27d8a.tar.bz2
samba-5de430441f3daaf841965ca76f8c21c926b27d8a.zip
r24908: we should not set s = NULL as we set it to talloc_strdup("") before
metze (This used to be commit 2246c018b6b99ae38a4a612309069fc919350ba6)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c5
1 files changed, 2 insertions, 3 deletions
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) {