Don't call eth_addr_resolve() unconditionally.

svn path=/trunk/; revision=51207
This commit is contained in:
Anders Broman 2013-08-08 04:32:19 +00:00
parent 812ad4f3bf
commit fd4a111149
1 changed files with 3 additions and 1 deletions

View File

@ -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;