Add function ssl_FreeDecodeBuffer() to release the sniffer allocated data buffer and reset the pointer.

This commit is contained in:
John Safranek
2015-10-26 12:01:21 -07:00
parent b05332c417
commit a42308e28a
3 changed files with 19 additions and 2 deletions

View File

@@ -313,8 +313,7 @@ int main(int argc, char** argv)
if (ret > 0) {
data[ret] = 0;
printf("SSL App Data(%d:%d):%s\n", packetNumber, ret, data);
free(data);
data = NULL;
ssl_FreeDecodeBuffer(&data, err);
}
}
else if (saveFile)