* Fix possible crash bug after enlarging a SOAP response buffer.

This commit is contained in:
Justin Maggard 2011-06-13 18:28:57 +00:00
parent 14b8dabc28
commit 3e760ebabf

View File

@ -634,7 +634,7 @@ callback(void *args, int argc, char **argv, char **azColName)
if( (str->size+DEFAULT_RESP_SIZE) <= MAX_RESPONSE_SIZE )
{
#endif
str->data = realloc(str->data, (str->off+DEFAULT_RESP_SIZE));
str->data = realloc(str->data, (str->size+DEFAULT_RESP_SIZE));
if( str->data )
{
str->size += DEFAULT_RESP_SIZE;