Fix regression introduced by gf3b631668b

I made a stupid when simplifying the bit-twiddling, and accidentally reversed
two of the bytes which completely broke MAC address name resolution.

Bug: 10344
Change-Id: I0720755fb290423150e4d84da9d45cb0b76341e4
Reviewed-on: https://code.wireshark.org/review/3522
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Evan Huus 2014-08-09 09:33:23 -04:00 committed by Michael Mann
parent ddeac70a5a
commit a4a94af0f7
1 changed files with 1 additions and 1 deletions

View File

@ -1283,7 +1283,7 @@ add_manuf_name(const guint8 *addr, unsigned int mask, gchar *name)
/* manuf needs only the 3 most significant octets of the ethernet address */
manuf_key = (int *)g_new(int, 1);
*manuf_key = (int)((addr[2] << 16) + (addr[1] << 8) + addr[0]);
*manuf_key = (int)((addr[0] << 16) + (addr[1] << 8) + addr[2]);
g_hash_table_insert(manuf_hashtable, manuf_key, g_strdup(name));
return;