skip legacy SASL mechanisms if client wants CB
authorLuke Howard <lukeh@padl.com>
Tue, 28 Sep 2010 16:01:39 +0000 (18:01 +0200)
committerLuke Howard <lukeh@padl.com>
Tue, 28 Sep 2010 16:01:39 +0000 (18:01 +0200)
lib/client.c

index 58aeb0d..18bab7d 100644 (file)
@@ -601,7 +601,7 @@ int sasl_client_start(sasl_conn_t *conn,
            }
 
            /* Can we meet it's features? */
-          if (SASL_CB_PRESENT(c_conn->cparams) &&
+           if (cbindingdisp != SASL_CB_DISP_NONE &&
                !(m->m.plug->features & SASL_FEAT_CHANNEL_BINDING)) {
                break;
            }