]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: deviceatlas: increase DA_MAX_HEADERS and header buffer sizes
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:24:05 +0000 (13:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
Increase DA_MAX_HEADERS from 24 to 32 and hbuf from 24 to 64 to
accommodate current DeviceAtlas data files which may use more headers
and longer header names.

addons/deviceatlas/da.c

index c5d5585212008fee770b6a222f78d07b59945a38..2c09c22725b2026596946ee213c1aab091c2cb8a 100644 (file)
@@ -419,7 +419,7 @@ static int da_haproxy_conv(const struct arg *args, struct sample *smp, void *pri
        return status != DA_OK ? 0 : da_haproxy(args, smp, &devinfo);
 }
 
-#define DA_MAX_HEADERS       24
+#define DA_MAX_HEADERS       32
 
 static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const char *kw, void *private)
 {
@@ -450,8 +450,8 @@ static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const ch
                da_evidence_id_t evid;
                enum htx_blk_type type;
                struct ist n, v;
-               char hbuf[24] = { 0 };
-               char tval[1024] = { 0 };
+               char hbuf[64];
+               char tval[1024];
 
                type = htx_get_blk_type(blk);