From 4c98f1651db74c052cf4fa2a10691308a64dbe5e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Feb 2014 18:55:10 +0100 Subject: librpc/rpc: handle ipv6 addresses without transport in dcerpc_parse_binding() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- librpc/rpc/binding.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'librpc') diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 99b1f1b5706..ea00a3d798c 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -410,6 +410,8 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *_s, stru if (p == NULL) { b->transport = NCA_UNKNOWN; + } else if (is_ipaddress_v6(s)) { + b->transport = NCA_UNKNOWN; } else { *p = '\0'; -- cgit