Bug in spp_session.c/initSessionCache? (assigning value to cleanup_sessions)

James McLaughlin <[email protected]>
Newsgroups gmane.comp.security.ids.snort.devel
Message-ID <CAPfcHQ6KmXYiJKJ=C3uuXkf2mFRzsz5JYYAB9NS4BOVM_ucGAg@mail.gmail.com>
In initSessionCache, we have the following block of code:

            if( cleanup_sessions < ( 2 * max_sessions ) )
                sessionCache->cleanup_sessions = cleanup_sessions;
            else
                sessionCache->cleanup_sessions = ( max_sessions / 2 );
            if( sessionCache->cleanup_sessions == 0 )
                sessionCache->cleanup_sessions = 1;

Going by the contents of the else block, the low default value of
cleanup_sessions, and the fact that this allows cleanup_sessions to exceed
max_sessions... this looks like it should begin:

            if( (2 * cleanup_sessions) <= max_sessions)

James.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

_______________________________________________
Snort-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.