From 25adf3f5125b43b2e3f42955510b44801126470c Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Thu, 18 Jan 2018 15:53:13 +1100 Subject: [PATCH] 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. --- src/nfa/sheng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }