aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@ns.aus.com>2005-11-28 08:31:11 +0000
committerRichard Sharpe <sharpe@ns.aus.com>2005-11-28 08:31:11 +0000
commit1a77239007047afeb7176abd99a723e7270ecd0e (patch)
tree9f89a0262a84f8325a308d1ec085f0b692178acd /epan
parent74b05ec5678d06b93ad52c14e9ad2b13107f5c7b (diff)
Make sure that we reset the filter pointer after we realloc the filter.
This should be simplified ... calc all the space required once and then realloc once etc. svn path=/trunk/; revision=16614
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index 622e72f2ea..a5125f14b3 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -944,6 +944,7 @@ static int parse_filter_extensibleMatch(ASN1_SCK *a, char **filter, guint *filte
*filter_length +=1;
*filter = g_realloc(*filter, *filter_length);
+ filterp = *filter + strlen(*filter);
*filterp++ = ')';
*filterp = '\0'; /* There had better be space */