summaryrefslogtreecommitdiffstats
path: root/proxy/src
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2012-06-25 12:25:46 +0200
committerSimo Sorce <simo@redhat.com>2012-06-25 17:13:30 -0400
commit943fe7b9c1661a76c96dbfa1fedbea9c61ee525a (patch)
tree55bd6b9246630d6fae2e8cdcbab96fd110dfbbf7 /proxy/src
parent889c081ca6acda82b77d0accb2f59413767397bf (diff)
downloadgss-proxy-943fe7b9c1661a76c96dbfa1fedbea9c61ee525a.tar.gz
gss-proxy-943fe7b9c1661a76c96dbfa1fedbea9c61ee525a.tar.xz
gss-proxy-943fe7b9c1661a76c96dbfa1fedbea9c61ee525a.zip
Use gp_find_and_free_cred() in gp_release_handle().
Guenther Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src')
-rw-r--r--proxy/src/gp_rpc_release_handle.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/proxy/src/gp_rpc_release_handle.c b/proxy/src/gp_rpc_release_handle.c
index 0a59872..4a596a4 100644
--- a/proxy/src/gp_rpc_release_handle.c
+++ b/proxy/src/gp_rpc_release_handle.c
@@ -34,7 +34,6 @@ int gp_release_handle(struct gssproxy_ctx *gpctx,
struct gssx_res_release_handle *rhr;
uint32_t ret_maj;
uint32_t ret_min;
- gss_cred_id_t cred;
int ret;
rha = &arg->release_handle;
@@ -48,12 +47,10 @@ int gp_release_handle(struct gssproxy_ctx *gpctx,
ret_min = 0;
break;
case GSSX_C_HANDLE_CRED:
- ret = gp_find_cred(gpsvc, &rha->cred_handle.gssx_handle_u.cred_info, &cred);
+ ret = gp_find_and_free_cred(gpsvc, &rha->cred_handle.gssx_handle_u.cred_info);
if (ret) {
ret_maj = GSS_S_UNAVAILABLE;
ret_min = 0;
- } else {
- ret_maj = gss_release_cred(&ret_min, &cred);
}
break;
default: