Skip to content
Snippets Groups Projects
Commit 282a7bc4 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Fix CID 187180.

parent b53e7be2
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,7 @@ struct packet *new_tcp_packet(int address_family, ...@@ -157,6 +157,7 @@ struct packet *new_tcp_packet(int address_family,
if (direction == DIRECTION_INBOUND) { if (direction == DIRECTION_INBOUND) {
asprintf(error, "window must be specified" asprintf(error, "window must be specified"
" for inbound packets"); " for inbound packets");
packet_free(packet);
return NULL; return NULL;
} }
packet->tcp->window = 0; packet->tcp->window = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment