mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
P2PS: Remove redundant check in for loop
Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com> Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
This commit is contained in:
parent
5a233fbdf0
commit
658665551c
@ -1132,7 +1132,7 @@ static int p2ps_gen_hash(struct p2p_data *p2p, const char *str, u8 *hash)
|
|||||||
if (adv_len >= sizeof(str_buf))
|
if (adv_len >= sizeof(str_buf))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (i = 0; str[i] && i < adv_len; i++) {
|
for (i = 0; i < adv_len; i++) {
|
||||||
if (str[i] >= 'A' && str[i] <= 'Z')
|
if (str[i] >= 'A' && str[i] <= 'Z')
|
||||||
str_buf[i] = str[i] - 'A' + 'a';
|
str_buf[i] = str[i] - 'A' + 'a';
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user