Fixed an incorrect call to gssEapWrapOrGetMIC in gss_delete_sec_context()
authorAlexey Melnikov <alexey.melnikov@isode.com>
Mon, 13 Jun 2011 17:40:54 +0000 (18:40 +0100)
committerSam Hartman <hartmans@debian.org>
Fri, 1 Jul 2011 10:20:20 +0000 (06:20 -0400)
The 4th parameter is a pointer to int and not an int. This was reported
as a warning by VC on Windows.

moonshot/mech_eap/delete_sec_context.c

index af878fd..9619ead 100644 (file)
@@ -67,7 +67,7 @@ gss_delete_sec_context(OM_uint32 *minor,
         iov[1].buffer.value = NULL;
         iov[1].buffer.length = 0;
 
-        major = gssEapWrapOrGetMIC(minor, ctx, FALSE, FALSE,
+        major = gssEapWrapOrGetMIC(minor, ctx, FALSE, NULL,
                                    iov, 2, TOK_TYPE_DELETE_CONTEXT);
         if (GSS_ERROR(major)) {
             GSSEAP_MUTEX_UNLOCK(&ctx->mutex);