[sspi] fixing memory leaks during sspi context establishment failure

This commit is contained in:
Olga Kornievskaia 2011-03-24 14:51:10 -04:00
parent 4222bd6f2b
commit 5482c0e51f
2 changed files with 8 additions and 1 deletions

View file

@ -633,6 +633,11 @@ call_again:
}
} /* end successful completion */
else {
if (ct->reply_msg.acpted_rply.ar_verf.oa_base != NULL) {
xdrs->x_op = XDR_FREE;
(void)xdr_opaque_auth(xdrs,
&(ct->reply_msg.acpted_rply.ar_verf));
}
/* maybe our credentials need to be refreshed ... */
if (refreshes-- && AUTH_REFRESH(cl->cl_auth, &ct->reply_msg))
goto call_again;