xpath multiple match, int main, etc
This commit is contained in:
parent
303f4a35a8
commit
5c938febf4
6 changed files with 36 additions and 23 deletions
|
|
@ -138,6 +138,8 @@ str2cvec(char *string,
|
|||
clicon_debug(1, "error cvec_add %s", strerror(errno));
|
||||
goto err;
|
||||
}
|
||||
while ((strlen(s) > 0) && isblank(*s))
|
||||
s++;
|
||||
cv_name_set(cv, s);
|
||||
cv_string_set(cv, valu);
|
||||
free(valu);
|
||||
|
|
|
|||
|
|
@ -432,7 +432,8 @@ request_process(clicon_handle h,
|
|||
/* If present, check credentials */
|
||||
if (plugin_credentials(h, r, &auth) < 0)
|
||||
goto done;
|
||||
clicon_debug(1, "%s credentials ok 1", __FUNCTION__);
|
||||
clicon_debug(1, "%s credentials ok auth:%d (should be 1)",
|
||||
__FUNCTION__, auth);
|
||||
if (auth == 0)
|
||||
goto done;
|
||||
clicon_debug(1, "%s credentials ok 2", __FUNCTION__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue