Skip to content

Commit

Permalink
Don't call eth_addr_resolve() unconditionally.
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=51207
  • Loading branch information
AndersBroman committed Aug 8, 2013
1 parent 812ad4f commit fd4a111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion epan/addr_resolv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,9 @@ eth_name_lookup(const guint8 *addr, const gboolean resolve) {
if( tp == NULL ) {
tp = eth_hash_new_entry(addr, resolve);
} else {
eth_addr_resolve(tp); /* Found but needs to be resolved */
if (resolve && (tp->status == HASHETHER_STATUS_UNRESOLVED)){
eth_addr_resolve(tp); /* Found but needs to be resolved */
}
}

return tp;
Expand Down

0 comments on commit fd4a111

Please sign in to comment.