Painful Lump on inside of right leg

Hi I am waiting to have surgery on my right foot, but since waiting I have got a painful lump on the inside just above my ankle of my right leg, which is painful when I walk or rest