Fix buffer overflow in ANQP server configuration

There was not enough room in the buffer for null termination of the
string (hex[length * 2] = '\0' in ascii2hexstr()). Allocate one extra
byte to avoid buffer overflow when building the domain name list hex
string.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
1 file changed