L.M.
Generally speaking, I try to have my husband address issues with his family and I address issues with my own. Ideally, in a situation like that, your husband would hear the comment and immediately address it clearly and directly. "Dad, I don't want you talking to my daughter like that." If your husband does not wish to step up and address the issue, first inform him that you will. Have a ready response for anything that you feel conflicts with the way you and your husband are raising your daughter, but make it clear that you will not tolerate inappropriate conversations with or around your daughter.... "I don't appreciate those comments to our around my daughter." If the response is, "It was a joke." You can ask him to try humor more appropriate for a toddler. He can choose to escalate things, but you've at least tried the moral high ground.