mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
gssapi_vhost_init: simplified
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user