librpc/rpc: only interpret the first option as endpoint if there's no '=' in it.
[samba.git] / 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;