summaryrefslogtreecommitdiff
path: root/librpc/rpc/binding.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-15 14:43:51 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:14 +0100
commit3f40cde3ea21c54f3134e529914515059a2927b3 (patch)
tree80635c9cdb7f05af739263b3d786dfc8f4092e06 /librpc/rpc/binding.c
parent33fa75c6159dea22a4960c73cdd0ad3969ad95d4 (diff)
downloadsamba-3f40cde3ea21c54f3134e529914515059a2927b3.tar.gz
librpc/rpc: only interpret the first option as endpoint if there's no '=' in it.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/rpc/binding.c')
-rw-r--r--librpc/rpc/binding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 9e012d55078..de319be4b46 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -407,7 +407,7 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc
}
}
- if (b->options[0]) {
+ if (b->options[0] && strchr(b->options[0], '=') == NULL) {
/* Endpoint is first option */
b->endpoint = b->options[0];
if (strlen(b->endpoint) == 0) b->endpoint = NULL;