CLEANUP: pattern: Ignore unknown samples in pat_match_ip().
authorAndreas Seltenreich <andreas.seltenreich@credativ.de>
Thu, 3 Mar 2016 19:08:35 +0000 (20:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2016 11:55:06 +0000 (12:55 +0100)
commitf0653192e31d3baa95ead5501b5cda467ab15b6d
tree0452d8e95e204b345065d229a0379f44bac72173
parent9727cf482cc4f761a2649fd04149f17bb3143600
CLEANUP: pattern: Ignore unknown samples in pat_match_ip().

Ignore samples that are neither SMP_T_IPV4 nor SMP_T_IPV6 instead of
matching with an uninitialized value in this case.

This situation should not occur in the current codebase but triggers
warnings in static code analysis tools.

Found in haproxy 1.5.
src/pattern.c