* auth_gssapi.c (auth_gssapi_create): Free call_res because
authorTom Yu <tlyu@mit.edu>
Thu, 17 Feb 2000 00:33:38 +0000 (00:33 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 17 Feb 2000 00:33:38 +0000 (00:33 +0000)
commit48511d8c90034b7573d6c9e4e1bf65893750f146
tree24062bf19605165f6cdf1b52bf840cff89bd2d94
parentdbf3ca09113b51bfbf552a15b9fa85e791d5e99b
* auth_gssapi.c (auth_gssapi_create): Free call_res because
xdr_authgssapi_init_res can potentially allocate memory.  Perhaps
clnt_call should really deal with this, though.  It is not at all
clear whether clnt_call or svc_getargs should actually end up
freeing allocated memory themselves.

* svc_auth_gssapi.c (_svcauth_gssapi): Call gssrpc_xdr_free() if
xdr_authgssapi_creds() or xdr_authgssapi_init_arg() fails.

* auth_gssapi_misc.c (xdr_authgssapi_creds):
(xdr_authgssapi_init_arg):
(xdr_authgssapi_init_res): Revert prior change.  The caller should
be the one dealing.  Additionally, it was probably wrong to
unconditionally free the object regardless of whether the mode is
XDR_DECODE.
(auth_gssapi_unwrap_data): Use temp_xdrs rather than in_xdrs to
force XDR_FREE operation.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12051 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/rpc/ChangeLog
src/lib/rpc/auth_gssapi.c
src/lib/rpc/auth_gssapi_misc.c
src/lib/rpc/svc_auth_gssapi.c