mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 12:01:12 -04: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
1 changed files with 1 additions and 1 deletions
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 };
|
||||
int i;
|
||||
|
||||
if (global.deviceatlas.daset == 0) {
|
||||
if (global.deviceatlas.daset == 0 || smp->data.u.str.len == 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue