File cyrus-sasl-fix-logging-in-gssapi.patch of Package cyrus-sasl.14128

--- cyrus-sasl-2.1.26/plugins/gssapi.c.orig	2017-07-23 15:59:18.479696158 +0200
+++ cyrus-sasl-2.1.26/plugins/gssapi.c	2017-07-25 09:52:27.323701405 +0200
@@ -1257,7 +1257,7 @@
 
     if (text == NULL) return SASL_BADPROT;
 
-    params->utils->log(NULL, SASL_LOG_DEBUG,
+    params->utils->log(params->utils->conn, SASL_LOG_DEBUG,
 		       "GSSAPI server step %d\n", text->state);
 
     switch (text->state) {
@@ -1283,7 +1283,7 @@
 	break;
 
     default:
-	params->utils->log(NULL, SASL_LOG_ERR,
+	params->utils->log(params->utils->conn, SASL_LOG_ERR,
 			   "Invalid GSSAPI server step %d\n", text->state);
 	return SASL_FAIL;
     }
@@ -1489,8 +1489,8 @@
     *clientout = NULL;
     *clientoutlen = 0;
     
-    params->utils->log(NULL, SASL_LOG_DEBUG,
-		       "GSSAPI client step %d", text->state);
+    /* params->utils->log(params->utils->conn, SASL_LOG_DEBUG,
+		       "GSSAPI client step %d", text->state); */
 
     switch (text->state) {
 
@@ -1982,7 +1982,7 @@
     }
 	
     default:
-	params->utils->log(NULL, SASL_LOG_ERR,
+	params->utils->log(params->utils->conn, SASL_LOG_ERR,
 			   "Invalid GSSAPI client step %d\n", text->state);
 	return SASL_FAIL;
     }