1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

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

thanks to Kai for spotting this!
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
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,
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;
}