]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: regex: fix pcre compile error when using JIT
authorHiroaki Nakamura <hnakamur@gmail.com>
Thu, 11 Apr 2013 06:17:37 +0000 (08:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2013 06:17:37 +0000 (08:17 +0200)
commite3cf2229ad3ca563dbae80d0f2f37209fffddbe3
tree16c9d7176649781c537be7c60a62fb6d80391393
parentf75d008c45c6e0e989825d381222cd3d978b01c8
BUG: regex: fix pcre compile error when using JIT

According to "man pcreapi", pcre_compile() does not accept being passed
a NULL pointer in errptr or erroffset. It immediately returns NULL, causing
any expression to fail. So let's pass real variables and make use of them
to improve error reporting.
src/acl.c