libmsc/gsm_04_08.c: fix: print proper length value

Since in parse_umts_auth_resp() we are checking the length of
GSM48_IE_AUTH_RES_EXT TLV, we need to print its length, but
not the length of the whole L3.

Change-Id: I2bfebce6d017be834bfe7628ffa2b341eb82c11c
This commit is contained in:
Vadim Yanitskiy 2019-05-08 16:53:23 +07:00 committed by Harald Welte
parent 0a437be0e3
commit 2fca80ea56
1 changed files with 2 additions and 2 deletions

View File

@ -916,8 +916,8 @@ static int parse_umts_auth_resp(uint8_t *res, uint8_t *res_len,
data_len = msgb_l3len(msg) - (data - (uint8_t*)msgb_l3(msg));
if (data_len < 3) {
LOG_MSC_A_CAT(msc_a, DMM, LOGL_ERROR, "MM AUTHENTICATION RESPONSE: l3 length invalid: %u\n",
msgb_l3len(msg));
LOG_MSC_A_CAT(msc_a, DMM, LOGL_ERROR, "MM AUTHENTICATION RESPONSE: "
"message length=%u is too short\n", data_len);
return -EINVAL;
}