bugfix: reference to released variables

I encountered an odd behavior that the len member in pcap_pkthdr is 0 when I read a pcap file. 
I noticed in debugging with gdb, then caplen and len members in pcap_pkthdr are released or reused by other variable.