From: Justin Viiret Date: Thu, 18 Jan 2018 04:53:13 +0000 (+1100) Subject: sheng: fix reportCurrent eod flag X-Git-Tag: v5.0.0^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25adf3f5125b43b2e3f42955510b44801126470c;p=thirdparty%2Fvectorscan.git sheng: fix reportCurrent eod flag eod here should be 0, not 1. The reportCurrent NFA API function for Sheng is unused at the moment, so this wasn't causing any problems earlier. --- diff --git a/src/nfa/sheng.c b/src/nfa/sheng.c index 837aa7df..4f30910b 100644 --- a/src/nfa/sheng.c +++ b/src/nfa/sheng.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Intel Corporation + * Copyright (c) 2016-2018, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -628,7 +628,7 @@ char nfaExecSheng_reportCurrent(const struct NFA *n, struct mq *q) { fireSingleReport(cb, ctxt, sh->report, offset); } else { fireReports(sh, cb, ctxt, s, offset, &cached_state_id, - &cached_report_id, 1); + &cached_report_id, 0); } }