Restconf uri with mismatching keys problem

This commit is contained in:
Olof hagsand 2019-06-10 13:56:06 +02:00
parent fc78824110
commit 40f3d48f2b
2 changed files with 43 additions and 5 deletions

View file

@ -2503,7 +2503,7 @@ api_path2xml_vec(char **vec,
else{
if ((valvec = clicon_strsep(restval, ",", &nvalvec)) == NULL)
goto done;
if (nvalvec > cvec_len(cvk)){
if (nvalvec != cvec_len(cvk)){
clicon_err(OE_XML, EINVAL, "List key %s length mismatch", name);
goto fail;
}