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:
David Carlier 2015-12-02 12:05:42 +00:00 committed by Willy Tarreau
parent df3785fe2a
commit 3b7113836d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}