hydra return code fix

This commit is contained in:
van Hauser 2017-11-06 07:23:50 +01:00
commit 445e5026ef
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Changelog for hydra
Release 8.7-dev Release 8.7-dev
* corrected hydra return code to be 0 on success
* added patch from debian maintainers which fixes spellings * added patch from debian maintainers which fixes spellings
* fixed weird crash on x64 systems * fixed weird crash on x64 systems
* many warning fixes by crondaemon * many warning fixes by crondaemon

View file

@ -4100,7 +4100,7 @@ int main(int argc, char *argv[]) {
} }
fflush(NULL); fflush(NULL);
if (error || j || exit_condition < 0) if (error || j != 0 || exit_condition < 0)
return -1; return -1;
else else
return 0; return 0;