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
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue