summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-07-27 18:43:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:43 -0500
commitccbad228651d9e5e72d23f25e6ada5a9b7c2f2df (patch)
tree8273e7981f2840b4f094d405611cdd31fc20c577
parent42304f6a8f74c8d7d5f8559e5b164301f6cd3c7f (diff)
downloadsamba-ccbad228651d9e5e72d23f25e6ada5a9b7c2f2df.tar.gz
samba-ccbad228651d9e5e72d23f25e6ada5a9b7c2f2df.tar.bz2
samba-ccbad228651d9e5e72d23f25e6ada5a9b7c2f2df.zip
r1593: Fix bug in get_subtree() where we were always looking at the head of
the list of subtrees. (This used to be commit 7fab5c4ecb429057c627396bdee5dc36245fb441)
-rw-r--r--source4/build/pidl/packet-dcerpc-eparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/pidl/packet-dcerpc-eparser.c b/source4/build/pidl/packet-dcerpc-eparser.c
index 9217f3a87e..c1b6e4378c 100644
--- a/source4/build/pidl/packet-dcerpc-eparser.c
+++ b/source4/build/pidl/packet-dcerpc-eparser.c
@@ -579,7 +579,8 @@ proto_tree *get_subtree(proto_tree *tree, char *name, struct e_ndr_pull *ndr,
/* Look for name */
for (l = list; l; l = g_slist_next(l)) {
- info = list->data;
+ info = l->data;
+
if (strcmp(name, info->name) == 0)
return info->subtree;
}