mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
BUG/MEDIUM: da: stop DeviceAtlas processing in the convertor if there is no input.
In case a HTTP header modifier, like req*del, is used, the User-Agent would be removed and cause a segfault, hence the work is stopped in due time.
This commit is contained in:
parent
df3785fe2a
commit
3b7113836d
2
src/da.c
2
src/da.c
@ -232,7 +232,7 @@ static int da_haproxy_conv(const struct arg *args, struct sample *smp, void *pri
|
|||||||
char useragentbuf[1024] = { 0 };
|
char useragentbuf[1024] = { 0 };
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (global.deviceatlas.daset == 0) {
|
if (global.deviceatlas.daset == 0 || smp->data.u.str.len == 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user