My sink is leaking at the p-trap's inlet. It is plastic going from my garbage disposal into a metal fitting. It looks like it was sealed with something like petroleum jelly. I've wiped it off in this picture though since it obviously wasn't working anymore.
What is the appropriate way to seal this and prevent further leaking? Fortunately it seems I caught it earlier enough that not too much damage was done.