From 2f48d0cdc84eaa583a2f2b6837e6251e62abc901 Mon Sep 17 00:00:00 2001 From: Wolfgang Kampichler Date: Tue, 30 Mar 2021 21:15:56 +0200 Subject: [PATCH] lost: DOM level count fix --- src/modules/lost/utilities.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c index 7aef5ea9d35..06a1727d74b 100644 --- a/src/modules/lost/utilities.c +++ b/src/modules/lost/utilities.c @@ -1234,8 +1234,11 @@ int lost_xpath_location(xmlDocPtr doc, char *path, p_loc_t loc) } else { LM_WARN("xpath location-info element(%d) ignored\n", i + 1); } + /* clean up */ xmlFree(xmlbuff); xmlFreeDoc(new); + /* reset level count */ + nok = -1; } } } else {