From 8369293090f79cb07af827dc6a7ec36c4ecbdcbb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Dec 2003 21:37:34 +0000 Subject: fixed a segv in RPC-* when debug level > 2 thanks to Kai for spotting this! (This used to be commit 0fc42c33d3b0930fdf1dc71a407f4fcaac69d82d) --- source4/librpc/rpc/dcerpc_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 4e6cb20b74..bd8249a9c9 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -303,7 +303,7 @@ const char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_bindi /* this is a *really* inefficent way of dealing with strings, but this is rarely called and the strings are always short, so I don't care */ - for (i=0;b->options[i];i++) { + for (i=0;b->options && b->options[i];i++) { s = talloc_asprintf(mem_ctx, "%s%s,", s, b->options[i]); if (!s) return NULL; } -- cgit