You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
/* prepare status */
switch(tb->status) {
/* success conditions */
/* XXX support optional vs mandatory arguments */
case TAC_PLUS_AUTHOR_STATUS_PASS_REPL:
tac_free_attrib(&re->attr);
case TAC_PLUS_AUTHOR_STATUS_PASS_ADD:
{
u_char *argp;
if(!re->msg) re->msg=xstrdup(author_ok_msg);
re->status=tb->status;
/* add attributes received to attribute list returned to
the client */
and it strikes me that the comment rings false. We can't add new attributes to the list, because the list has been clobbered (along with the other members of *re).
For that matter, the tac_free_attrib() will always be a no-op because re->attr will be NULL.
The bzero() at the top of the function seems wrong. And if re->msg is an xstrdup()'d pointer, isn't this going to cause a leak?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm looking at this code:
followed by:
and it strikes me that the comment rings false. We can't add new attributes to the list, because the list has been clobbered (along with the other members of
*re
).For that matter, the
tac_free_attrib()
will always be a no-op becausere->attr
will be NULL.The
bzero()
at the top of the function seems wrong. And ifre->msg
is anxstrdup()
'd pointer, isn't this going to cause a leak?The text was updated successfully, but these errors were encountered: