mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
33fa75c615
commit
3f40cde3ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user