Skip to content

Commit 6ee2c9c

Browse files
committed
eep: do not save packets in HEP parser function #494
1 parent c4e165d commit 6ee2c9c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/capture_eep.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ accept_eep_client(void *info)
177177
if (capture_packet_parse(pkt) != 0) {
178178
packet_destroy(pkt);
179179
}
180+
181+
// Store this packets in output file
182+
capture_dump_packet(pkt);
183+
180184
capture_unlock();
181185
}
182186
}
@@ -678,9 +682,6 @@ capture_eep_receive_v2()
678682
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
679683
sng_free(frame_payload);
680684

681-
// Store this packets in output file
682-
capture_dump_packet(pkt);
683-
684685
/* FREE */
685686
sng_free(payload);
686687
return pkt;
@@ -863,9 +864,6 @@ capture_eep_receive_v3(const u_char *pkt, uint32_t size)
863864
// We don't longer require frame payload anymore, because adding the frame to packet clones its memory
864865
sng_free(frame_payload);
865866

866-
// Store this packets in output file
867-
capture_dump_packet(pkt_new);
868-
869867
/* FREE */
870868
sng_free(payload);
871869
return pkt_new;

0 commit comments

Comments
 (0)