mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
change the order of the comparison operands
This commit is contained in:
parent
59241d6b8f
commit
f7f3aa1686
1 changed files with 3 additions and 3 deletions
6
hydra.c
6
hydra.c
|
@ -2296,11 +2296,11 @@ int main(int argc, char *argv[]) {
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
outfile_format_tmp = optarg;
|
outfile_format_tmp = optarg;
|
||||||
if (0==strcasecmp(outfile_format_tmp,"text"))
|
if (strcasecmp(outfile_format_tmp,"text") == 0)
|
||||||
hydra_options.outfile_format = FORMAT_PLAIN_TEXT;
|
hydra_options.outfile_format = FORMAT_PLAIN_TEXT;
|
||||||
else if (0==strcasecmp(outfile_format_tmp,"json")) // latest json formatting.
|
else if (strcasecmp(outfile_format_tmp,"json") == 0) // latest json formatting.
|
||||||
hydra_options.outfile_format = FORMAT_JSONV1;
|
hydra_options.outfile_format = FORMAT_JSONV1;
|
||||||
else if (0==strcasecmp(outfile_format_tmp,"jsonv1"))
|
else if (strcasecmp(outfile_format_tmp,"jsonv1") == 0)
|
||||||
hydra_options.outfile_format = FORMAT_JSONV1;
|
hydra_options.outfile_format = FORMAT_JSONV1;
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "[ERROR] Output file format must be (text, json, jsonv1)\n");
|
fprintf(stderr, "[ERROR] Output file format must be (text, json, jsonv1)\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue