reorder clixon-restconf.yang and some test fixes
This commit is contained in:
parent
dcc19d3edf
commit
d1e5599572
4 changed files with 50 additions and 33 deletions
|
|
@ -254,10 +254,13 @@ example_basic_auth(clicon_handle h,
|
|||
goto fail;
|
||||
/* authenticated */
|
||||
*userp = user;
|
||||
user=NULL; /* to avoid free below */
|
||||
*authp = 1;
|
||||
retval = 0;
|
||||
done: /* error */
|
||||
clicon_debug(1, "%s retval:%d authp:%d userp:%s", __FUNCTION__, retval, *authp, *userp);
|
||||
if (user)
|
||||
free(user);
|
||||
if (cb)
|
||||
cbuf_free(cb);
|
||||
if (xt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue