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:
Richard Sharpe 2005-11-28 08:31:11 +00:00
parent 74b05ec567
commit 1a77239007
1 changed files with 1 additions and 0 deletions

View File

@ -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 */