]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] fix parser crash on unconditional tcp content rules
authorWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 10:05:46 +0000 (12:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 10:22:39 +0000 (12:22 +0200)
commit8e80e0bc4c46ba2b156e24dc1eb43a735ebf9783
tree0f2fcf4f68cbab0548d9a0cc407bd495171cc381
parent55165fec0256cfea68382d179db559ec61f1d1dd
[BUG] fix parser crash on unconditional tcp content rules

Since 1.3.17, a config containing one of the following lines would
crash the parser :

    tcp content reject
    tcp content accept

This is because a check is performed on the condition which is not
specified. The obvious fix consists in checkinf for a condition
first.
src/proto_tcp.c