- } else if (oparams->authid == NULL) {
- /*
- * XXX we acquired GSS credentials pre-canonicalisation. Just noting
- * this might cause some problems with applications.
- */
- if (userid == NULL || userid[0] == '\0') {
- result = params->canon_user(params->utils->conn, authid, 0,
- SASL_CU_AUTHID | SASL_CU_AUTHZID,
- oparams);
- } else {
- result = params->canon_user(params->utils->conn,
- authid, 0, SASL_CU_AUTHID, oparams);
- if (result != SASL_OK)
- goto cleanup;
-
- result = params->canon_user(params->utils->conn,
- userid, 0, SASL_CU_AUTHZID, oparams);
- if (result != SASL_OK)
- goto cleanup;
- }