Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: list index out of range in dns.py, self.names[0] #17

Open
klepikov opened this issue May 15, 2012 · 1 comment
Open

Crash: list index out of range in dns.py, self.names[0] #17

klepikov opened this issue May 15, 2012 · 1 comment

Comments

@klepikov
Copy link

File "pcap2har/pcap.py", line 59, in ParsePcap
dispatcher.add(ts, buf, eth)
File "pcap2har/packetdispatcher.py", line 37, in add
self.udp.add(ts, ip.data)
File "pcap2har/udp.py", line 28, in add
self.dns.add(dns.Packet(ts, dnspkt))
File "pcap2har/dns.py", line 86, in add
new_query = Query(pkt)
File "dns.py", line 49, in init
self.name = initial_packet.name()
File "pcap2har/dns.py", line 27, in name
return self.names[0]
IndexError: list index out of range

@andrewf
Copy link
Owner

andrewf commented May 19, 2012

It looks like there was a DNS packet that didn't have a name in it. I'm not sure what to do with that. Can you give me a pcap that replicates this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants