reorder clixon-restconf.yang and some test fixes

This commit is contained in:
Olof Hagsand 2021-02-14 14:48:52 +00:00
parent dcc19d3edf
commit d1e5599572
4 changed files with 50 additions and 33 deletions

View file

@ -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)