From ecc25195945bdaa6d9ac20b7ac7bf2a1fb6c62f3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 16 Dec 2003 10:15:21 +0000 Subject: no longer require the pipe name or tcp port number to be the first option in the ncacn_* syntax (This used to be commit 74f36d32bb14e94a80e1963cbc95f8fba3f23335) --- source4/librpc/rpc/dcerpc_util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index fbc97f316d..f1b719e64a 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -364,7 +364,11 @@ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struct dcerpc_ for (i=0;b->options[i];i++) { for (j=0;joptions[i]) == 0) { + int k; b->flags |= options[j].flag; + for (k=i;b->options[k];k++) { + b->options[k] = b->options[k+1]; + } break; } } -- cgit