Blame SOURCES/cyrus-sasl-2.1.26-release-server_creds.patch

bfd35c
diff -up cyrus-sasl-2.1.26/plugins/gssapi.c.release-server_creds cyrus-sasl-2.1.26/plugins/gssapi.c
bfd35c
--- cyrus-sasl-2.1.26/plugins/gssapi.c.release-server_creds	2012-12-20 17:17:37.000000000 +0100
bfd35c
+++ cyrus-sasl-2.1.26/plugins/gssapi.c	2012-12-20 17:42:11.498138999 +0100
bfd35c
@@ -945,6 +945,12 @@ gssapi_server_mech_authneg(context_t *te
bfd35c
 	ret = SASL_CONTINUE;
bfd35c
     }
bfd35c
 
bfd35c
+    /* Release server creds which are no longer needed */
bfd35c
+     if ( text->server_creds != GSS_C_NO_CREDENTIAL) {
bfd35c
+        maj_stat = gss_release_cred(&min_stat, &text->server_creds);
bfd35c
+        text->server_creds = GSS_C_NO_CREDENTIAL;
bfd35c
+     }
bfd35c
+
bfd35c
   cleanup:
bfd35c
     if (client_name_MN) {
bfd35c
 	GSS_LOCK_MUTEX(params->utils);