]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/context.c
gssd: Fix double free when exporting lucid context
[nfs-utils.git] / utils / gssd / context.c
index 1e50bbfd85d6073c8bea39e2ae84d36c0ee5fec9..7757a7700d14dd7fbe07f9878d6d79f514467156 100644 (file)
 #include "context.h"
 
 int
-serialize_context_for_kernel(gss_ctx_id_t ctx,
+serialize_context_for_kernel(gss_ctx_id_t *ctx,
                             gss_buffer_desc *buf,
                             gss_OID mech,
                             int32_t *endtime)
 {
        if (g_OID_equal(&krb5oid, mech))
                return serialize_krb5_ctx(ctx, buf, endtime);
-#ifdef HAVE_SPKM3_H
-       else if (g_OID_equal(&spkm3oid, mech))
-               return serialize_spkm3_ctx(ctx, buf, endtime);
-#endif
        else {
                printerr(0, "ERROR: attempting to serialize context with "
                                "unknown/unsupported mechanism oid\n");