Skip to content

Commit 14088f2

Browse files
committed
Fix: issue with freeing static krb5 OID
1 parent edc1b99 commit 14088f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/openvas-krb5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ okrb5_gss_free_context (struct OKrb5GSSContext *context)
420420
{
421421
gss_release_name (&min_stat, &context->gss_target);
422422
}
423-
if (context->gss_mech != NULL)
423+
if (context->gss_mech != NULL && context->gss_mech != gss_mech_spnego)
424424
{
425425
gss_release_oid (&min_stat, &context->gss_mech);
426426
}

0 commit comments

Comments
 (0)