summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-17 21:37:34 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-17 21:37:34 +0000
commit8369293090f79cb07af827dc6a7ec36c4ecbdcbb (patch)
tree7f5e07df625b7d4c94df1b76da26fb50b8b2026a /source4/librpc
parenta2ec4b990defee9c67579ef247faebac178d9efd (diff)
downloadsamba-8369293090f79cb07af827dc6a7ec36c4ecbdcbb.tar.gz
samba-8369293090f79cb07af827dc6a7ec36c4ecbdcbb.tar.bz2
samba-8369293090f79cb07af827dc6a7ec36c4ecbdcbb.zip
fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this! (This used to be commit 0fc42c33d3b0930fdf1dc71a407f4fcaac69d82d)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}