mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
Remove useless null check
'while' has 2 pbuffer[0] checks: - pbuffer[0] not equal to 0 - pbuffer[0] more then 31 (first printable char) if pbuffer[0] more than 31 it's always not equal to 0 => first check is useless
This commit is contained in:
parent
a01712370b
commit
18ae87b396
1 changed files with 1 additions and 1 deletions
2
sasl.c
2
sasl.c
|
@ -308,7 +308,7 @@ void sasl_digest_md5(char *result, char *login, char *pass, char *buffer, char *
|
||||||
currentpos = 0;
|
currentpos = 0;
|
||||||
}
|
}
|
||||||
pbuffer++;
|
pbuffer++;
|
||||||
} while ((pbuffer[0] != '\0') && (pbuffer[0] > 31) && (ind < array_size));
|
} while ((pbuffer[0] > 31) && (ind < array_size));
|
||||||
//save the latest one
|
//save the latest one
|
||||||
if (ind < array_size) {
|
if (ind < array_size) {
|
||||||
array[ind] = malloc(currentpos + 1);
|
array[ind] = malloc(currentpos + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue