librpc/rpc: only interpret the first option as endpoint if there's no '=' in it.
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Jan 2014 13:43:51 +0000 (14:43 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:14 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
librpc/rpc/binding.c

index 9e012d55078ce8d40eddb93e1c22cf17bf94d020..de319be4b465809ebf7b1fdc59eab5bf01a3d60b 100644 (file)
@@ -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;