Perhaps he is thinking of Gibsons's Bridge trilogy. There AIDS is cured by finding a variant of HIV which does not cause the disease. And at least in one scene it is implied that infection with the harmless variant is a usual prerequisite for casual sex.