CD40-induced IL-10 promotes Leishmania infection whereas CD40-induced IL-12 protects hosts from the infection. Here, CD40 is linked to infection.