This fixes bug 2943 thus allows ESP decoding again, which was
broken since r25264.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27835
f5534014-38df-0310-8fa8-
9805f1628bb7
*ascii_key = NULL;
return -1; /* not a valid hex digit */
}
- key_byte = ((guchar)hex_digit) << 8;
+ key_byte = ((guchar)hex_digit) << 4;
hex_digit = g_ascii_xdigit_value(key[i]);
i++;
if (hex_digit == -1)
*ascii_key = NULL;
return -1; /* not a valid hex digit */
}
- key_byte = ((guchar)hex_digit) << 8;
+ key_byte = ((guchar)hex_digit) << 4;
hex_digit = g_ascii_xdigit_value(key[i]);
i++;
if (hex_digit == -1)