git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2ec4b9
)
fixed a segv in RPC-* when debug level > 2
author
Andrew Tridgell
<tridge@samba.org>
Wed, 17 Dec 2003 21:37:34 +0000
(21:37 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 17 Dec 2003 21:37:34 +0000
(21:37 +0000)
thanks to Kai for spotting this!
(This used to be commit
0fc42c33d3b0930fdf1dc71a407f4fcaac69d82d
)
source4/librpc/rpc/dcerpc_util.c
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/dcerpc_util.c
b/source4/librpc/rpc/dcerpc_util.c
index 4e6cb20b7467770e2a58b403393f7c213bf5a47e..bd8249a9c9800b6cfa73e71e1e6adbc432dba11b 100644
(file)
--- 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;
}