aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--text2pcap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 934709d468..bd72a5e975 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -1249,9 +1249,10 @@ parse_token (token_t token, char *str)
write_current_packet(FALSE);
state = INIT;
}
- } else
+ } else {
state = READ_OFFSET;
- pkt_lnstart = packet_buf + num;
+ }
+ pkt_lnstart = packet_buf + num;
break;
case T_EOL:
state = START_OF_LINE;