segv on multiple keys

This commit is contained in:
Olof hagsand 2019-08-03 15:08:10 +02:00
parent e61a4dc7eb
commit 1fe7d916f4
2 changed files with 28 additions and 20 deletions

View file

@ -144,8 +144,8 @@ expand_dbvar(void *h,
}
api_path_fmt = cv_string_get(cv);
/* api_path_fmt = /interface/%s/address/%s
--> ^/interface/eth0/address/.*$
--> /interface/[name="eth0"]/address
api_path: --> /interface/eth0/address/.*
xpath: --> /interface/[name="eth0"]/address
*/
if (api_path_fmt2api_path(api_path_fmt, cvv, &api_path) < 0)
goto done;