mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 10:37:27 -07:00
Replace possible null pointer no '(null)' string
This commit is contained in:
parent
e95e036bbf
commit
48709842a6
1 changed files with 1 additions and 1 deletions
2
hydra.c
2
hydra.c
|
@ -3173,7 +3173,7 @@ int main(int argc, char *argv[]) {
|
|||
cond = strtok(NULL, ":");
|
||||
optional1 = strtok(NULL, "\n");
|
||||
if ((variables == NULL) || (strstr(variables, "^USER^") == NULL && strstr(variables, "^PASS^") == NULL)) {
|
||||
fprintf(stderr, "[ERROR] the variables argument needs at least the strings ^USER^ or ^PASS^: %s\n", variables);
|
||||
fprintf(stderr, "[ERROR] the variables argument needs at least the strings ^USER^ or ^PASS^: %s\n", STR_NULL(variables));
|
||||
exit(-1);
|
||||
}
|
||||
if ((url == NULL) || (cond == NULL)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue