Don't cache existing IPv4 and IPv6 hostnames.
authorGerald Combs <gerald@wireshark.org>
Wed, 18 Mar 2015 18:25:06 +0000 (11:25 -0700)
committerGerald Combs <gerald@wireshark.org>
Wed, 18 Mar 2015 18:40:46 +0000 (18:40 +0000)
commit6b5c71af0da1f213448b14d07e8a9cf209af63b2
tree46022d90d5c50ac3eecf436d1def889f7019039b
parent13b3fcbff5a6b2d15f90c3269623e5bcc13c6323
Don't cache existing IPv4 and IPv6 hostnames.

In the Qt UI redrawing the packet list redissects our visible packets,
which might call add_ipv{4,6}_name, which sets new_resolved_objects =
TRUE, which emits the addressResolutionChanged signal, which redraws the
packet list, which ...

Break out of the loop by checking to see if we've already cached an IPv4
or IPv6 hostname.

Change-Id: Icb2841e3453fb98d4cf0ea06a0f49737e2b8f25e
Reviewed-on: https://code.wireshark.org/review/7738
Reviewed-by: Gerald Combs <gerald@wireshark.org>
epan/addr_resolv.c