Fix for bug 539

This commit is contained in:
Mark Riddoch
2014-09-12 15:29:48 +01:00
parent 7069ee2549
commit 3dcecc2d77
2 changed files with 33 additions and 3 deletions

View File

@ -693,8 +693,17 @@ int i;
service->name)));
return 0;
}
session->tail = *tail;
free(tail);
/*
* filterUpstream may simply return the 3 parameter if
* the filter has no upstream entry point. So no need
* to copy the contents or free tail in this case.
*/
if (tail != &session->tail)
{
session->tail = *tail;
free(tail);
}
}
return 1;