Interworking: Remove unnecessary dead increment
build_root_nai() will not be extended to write something after the domain, so there is no need to update the pos pointer after the final os_snprintf() call in the function. Remove this to make a static analyzer happier. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a1e46f320d
commit
5dbbf36916
1 changed files with 2 additions and 2 deletions
|
@ -796,8 +796,8 @@ static int build_root_nai(char *nai, size_t nai_len, const char *imsi,
|
||||||
*pos++ = imsi[4];
|
*pos++ = imsi[4];
|
||||||
*pos++ = imsi[5];
|
*pos++ = imsi[5];
|
||||||
}
|
}
|
||||||
pos += os_snprintf(pos, end - pos, ".mcc%c%c%c.3gppnetwork.org",
|
os_snprintf(pos, end - pos, ".mcc%c%c%c.3gppnetwork.org",
|
||||||
imsi[0], imsi[1], imsi[2]);
|
imsi[0], imsi[1], imsi[2]);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue