forked from osmocom/wireshark
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
This commit is contained in:
parent
74b05ec567
commit
1a77239007
1 changed files with 1 additions and 0 deletions
|
@ -944,6 +944,7 @@ static int parse_filter_extensibleMatch(ASN1_SCK *a, char **filter, guint *filte
|
||||||
|
|
||||||
*filter_length +=1;
|
*filter_length +=1;
|
||||||
*filter = g_realloc(*filter, *filter_length);
|
*filter = g_realloc(*filter, *filter_length);
|
||||||
|
filterp = *filter + strlen(*filter);
|
||||||
*filterp++ = ')';
|
*filterp++ = ')';
|
||||||
*filterp = '\0'; /* There had better be space */
|
*filterp = '\0'; /* There had better be space */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue