s4:kdc: fix compiler warning
[ira/wip.git] / source4 / kdc / db-glue.c
index 88fecdd5ab13212221c8a3cf30b1f196ef4853a3..0bdad7b21ab2d46df9524064b21433de44d446fc 100644 (file)
@@ -1175,7 +1175,7 @@ static krb5_error_code samba_kdc_fetch_krbtgt(krb5_context context,
                 * in a TGS REP even if the client did not specify
                 * the canonicalize flag.
                 */
-               if (flags & HDB_F_CANON|HDB_F_FOR_TGS_REQ) {
+               if (flags & (HDB_F_CANON|HDB_F_FOR_TGS_REQ)) {
                        ret = krb5_copy_principal(context, principal, &alloc_principal);
                        if (ret) {
                                return ret;