]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
Allow no scratch for stream reset API calls
authorJustin Viiret <justin.viiret@intel.com>
Fri, 23 Oct 2015 04:32:55 +0000 (15:32 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 30 Oct 2015 00:28:37 +0000 (11:28 +1100)
commit9ff1303cd8adf1010fce16e36a803f53ec3a7ff2
tree2e4d0f5519bd0658638be98666b1a712b47e522f
parentb59491d0dbab1a8ed47898bb397d4a539382c0e7
Allow no scratch for stream reset API calls

Bring hs_reset_stream(), hs_reset_and_copy_stream()'s functionality into
line with hs_close_stream() by accepting a NULL scratch if and only if
the match callback is also NULL, indicating that no matches should be
delivered.
src/hs_runtime.h
src/runtime.c
unit/hyperscan/arg_checks.cpp
unit/hyperscan/stream_op.cpp