1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

fixed a segv in RPC-* when debug level > 2

thanks to Kai for spotting this!
This commit is contained in:
Andrew Tridgell -
parent 3f1b781c56
commit 0fc42c33d3

View File

@ -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, /* this is a *really* inefficent way of dealing with strings,
but this is rarely called and the strings are always short, but this is rarely called and the strings are always short,
so I don't care */ 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]); s = talloc_asprintf(mem_ctx, "%s%s,", s, b->options[i]);
if (!s) return NULL; if (!s) return NULL;
} }