sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone

Blame SOURCES/cyrus-sasl-2.1.26-revert-upstream-080e51c7fa0421eb2f0210d34cf0ac48a228b1e9.patch

c4de4d
diff --git a/plugins/gssapi.c b/plugins/gssapi.c
c4de4d
index e6fcf46..a27eb2b 100644
c4de4d
--- a/plugins/gssapi.c
c4de4d
+++ b/plugins/gssapi.c
c4de4d
@@ -1594,10 +1594,10 @@ static int gssapi_client_mech_step(void *conn_context,
c4de4d
 	}
c4de4d
 
c4de4d
 	/* Setup req_flags properly */
c4de4d
-	req_flags = GSS_C_INTEG_FLAG;
c4de4d
+	req_flags = GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG;
c4de4d
 	if (params->props.max_ssf > params->external_ssf) {
c4de4d
 	    /* We are requesting a security layer */
c4de4d
-	    req_flags |= GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG;
c4de4d
+	    req_flags |= GSS_C_INTEG_FLAG;
c4de4d
 	    /* Any SSF bigger than 1 is confidentiality. */
c4de4d
 	    /* Let's check if the client of the API requires confidentiality,
c4de4d
 	       and it wasn't already provided by an external layer */