From 3f40cde3ea21c54f3134e529914515059a2927b3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 15 Jan 2014 14:43:51 +0100 Subject: librpc/rpc: only interpret the first option as endpoint if there's no '=' in it. Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- librpc/rpc/binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'librpc') 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; -- cgit v1.2.1