fix pass/block inversion

This commit is contained in:
dave 2018-07-14 21:49:32 -07:00
parent 28210a9ab8
commit ff6c67d02c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ int pfdata_parse(char* message, pf_data* result) {
break;
case 6: /*action*/
result->action = strcmp(token, "block") ? pf_hit_block : pf_hit_pass; /*XXX*/
result->action = strcmp(token, "block") == 0 ? pf_hit_block : pf_hit_pass; /*XXX*/
break;
case 7: /*direction*/