diff --git a/docs/CHANGELOG b/docs/CHANGELOG index c753dbb7b..628cf0346 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -6,6 +6,7 @@ - CVE-2018-17580 heap-buffer-overflow fast_edit_packet (#485) - CVE-2018-17582 heap-buffer-overflow in get_next_packet (#484) - Out-of-tree build (#482) + - Closing stdin on pipe (#479) - Second pcap file hangs on multipler option (#472) - Jumbo frame support for fragroute option (#466) - Add ability to change tcp SEQ/ACK numbers (#425) diff --git a/src/replay.c b/src/replay.c index 018c6be92..cb2f001ab 100644 --- a/src/replay.c +++ b/src/replay.c @@ -125,10 +125,6 @@ replay_file(tcpreplay_t *ctx, int idx) path = ctx->options->sources[idx].filename; - /* close stdin if reading from it (needed for some OS's) */ - if (strncmp(path, "-", 1) == 0) - close(1); - /* read from pcap file if we haven't cached things yet */ if (!ctx->options->preload_pcap) { if ((pcap = pcap_open_offline(path, ebuf)) == NULL) {