diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-15 14:43:51 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:14 +0100 |
commit | 3f40cde3ea21c54f3134e529914515059a2927b3 (patch) | |
tree | 80635c9cdb7f05af739263b3d786dfc8f4092e06 /librpc | |
parent | 33fa75c6159dea22a4960c73cdd0ad3969ad95d4 (diff) | |
download | samba-3f40cde3ea21c54f3134e529914515059a2927b3.tar.gz samba-3f40cde3ea21c54f3134e529914515059a2927b3.tar.xz samba-3f40cde3ea21c54f3134e529914515059a2927b3.zip |
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')
-rw-r--r-- | librpc/rpc/binding.c | 2 |
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; |