trafgen: proto: Zero out the correct packet slot
commit374141decf7c9978fd2c535099440d68e11e7683
authorTobias Klauser <tklauser@distanz.ch>
Fri, 16 Dec 2016 11:02:06 +0000 (16 12:02 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 16 Dec 2016 11:02:06 +0000 (16 12:02 +0100)
treee4319060aea90473e47488a04f09ea995a609d59
parent074f8fc82ff26bb02c3c09f6ed71bca77e08e020
trafgen: proto: Zero out the correct packet slot

In the third attempt, finally do the packet slot zeroing correctly. Zero
the struct packet in __init_new_packet_slot() not the struct packet_dyn
in __init_new_counter_slot().

Don't know what hit me yesterday...

Fixes: d6d511ecff24 ("trafgen: proto: Zero out newly allocated struct packet")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_parser.y