pfsense/pfsense-tools — pull request #100 by bmeeks8 (2013-03-22 22:19:01+00:00)
Title: Fix bug in spoink whitelist parsing function that resets buffer to zeroes.

CHANGE LOG
===================================================================

Date: 03/22/2013

1. Fix bug introduced in the new Snort 2.9.4.1 port that inadvertently added a call
to memset() to clear the file buffer AFTER reading the file instead of BEFORE
reading the file. This caused an empty buffer to be passed to the Snort API instead
of the actual whitelist file line content as desired. The buffer clearing call to memset()
should have been place before the while() loop.