Has it been dry a while? Pour a bunch of water in it and see if the smell goes away. Once the P trap is full of water it will block the gas coming up the drain.
I have to do this with my tub every once in a while since I have a standalone shower and I only use the tub a couple times a year at most.