From 3b7113836db1f4f1bf35b475dceaa7366e90ad8e Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 2 Dec 2015 12:05:42 +0000 Subject: [PATCH] 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. --- src/da.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/da.c b/src/da.c index e1886b8e8..a214b319c 100644 --- a/src/da.c +++ b/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; }