Thierry Fournier 6fc340ff07 BUG/MEDIUM: sticktables: segfault in some configuration error cases
When a stick table is tracked, and another one is used later on the
configuration, a segfault occurs.

The function "smp_create_src_stkctr" can return a NULL value, and
its value is not tested, so one other function try to dereference
a NULL pointer. This patch just add a verification of the NULL
pointer.

The problem is reproduced with this configuration:

   listen www
       mode http
       bind :12345
       tcp-request content track-sc0 src table IPv4
       http-request allow if { sc0_inc_gpc0(IPv6) gt 0 }
       server dummy 127.0.0.1:80
   backend IPv4
       stick-table type ip size 10 expire 60s store gpc0
   backend IPv6
       stick-table type ipv6 size 10 expire 60s store gpc0

Thank to kabefuna@gmail.com for the bug report.

This patch must be backported in the 1.6 and 1.5 version.
2016-06-07 11:05:23 +02:00
..
2016-04-03 14:17:42 +02:00
2016-04-03 14:17:42 +02:00
2016-04-03 14:17:42 +02:00
2016-04-03 14:17:42 +02:00
2016-04-03 14:17:42 +02:00
2016-05-26 07:15:57 +02:00
2016-02-09 14:53:15 +01:00
2016-04-03 14:17:42 +02:00
2016-04-20 10:53:12 +02:00
2016-04-03 14:17:42 +02:00