Restconf uri with mismatching keys problem
This commit is contained in:
parent
fc78824110
commit
40f3d48f2b
2 changed files with 43 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue