Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfqueue: fix wrong return value check in error cases #1870

Closed
wants to merge 1 commit into from
Closed

nfqueue: fix wrong return value check in error cases #1870

wants to merge 1 commit into from

Conversation

norg
Copy link
Member

@norg norg commented Feb 23, 2016

The check for the return value was wrong, we have 0 for success and 1 (and 2) for the error cases like
TM_ECODE_FAILED.

This fixes also https://redmine.openinfosecfoundation.org/issues/1411

@inliniac
Copy link
Contributor

More explanation in the PR than the commit message...

@inliniac inliniac closed this Feb 24, 2016
inliniac pushed a commit that referenced this pull request Feb 26, 2016
The check for the return value was wrong, we have 0 for success and 1
(and 2) for the error cases like TM_ECODE_FAILED, so we should quit
unless TM_ECODE_OK (0) is returned for NFQInitThread. This fixes #1870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants