packets: fix use of potentially uninitialized value

resolves: https://github.com/rtrlib/rtrlib/issues/6