gssapi_vhost_init: simplified

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-11-24 16:06:41 +01:00
parent 6fe528ec4c
commit 65a0e595e5

View File

@@ -93,7 +93,7 @@ static void gssapi_vhost_init(void **_vctx, void *pool, void *additional)
{
int ret;
OM_uint32 time, minor;
gss_name_t name = GSS_C_NO_NAME;
const gss_name_t name = GSS_C_NO_NAME;
gssapi_cfg_st *config = additional;
struct gssapi_vhost_ctx_st *vctx;
@@ -136,9 +136,6 @@ static void gssapi_vhost_init(void **_vctx, void *pool, void *additional)
}
}
if (name != GSS_C_NO_NAME)
gss_release_name(&minor, &name);
*_vctx = vctx;
return;
}