package/nginx-naxsi: fix build without x_forwarded_for
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 14 Aug 2021 10:43:17 +0000 (12:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 15 Aug 2021 07:23:44 +0000 (09:23 +0200)
commit1be9d2eb4ad5164d4443e9b63aeaec832bb18adc
treef30af6df45c343cddf9430d88cd0f4610c4e9fc8
parentff619b5c4212000e8bd511bcdb060531c0b4ceab
package/nginx-naxsi: fix build without x_forwarded_for

Fix the following build failure without x_forwarded_for raised since
bump to version 1.3 in commit 3335c8d8685119ebb5b2a9a6e575f3a5337c4d90:

/home/buildroot/autobuild/instance-3/output-1/build/nginx-naxsi-1.3/naxsi_src/naxsi_runtime.c: In function 'ngx_http_naxsi_data_parse':
/home/buildroot/autobuild/instance-3/output-1/build/nginx-naxsi-1.3/naxsi_src/naxsi_runtime.c:2846:20: error: 'ngx_http_headers_in_t' has no member named 'x_forwarded_for'
   if (r->headers_in.x_forwarded_for.nelts >= 1) {
                    ^

Fixes:
 - http://autobuild.buildroot.org/results/cdbc1536f6b5de3d4c836efa2f0dcaf0cdbb1462

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/nginx-naxsi/0001-naxsi_src-naxsi_runtime.c-fix-build-without-x_forwar.patch [new file with mode: 0644]