Strip all old paint and varnish back to bare wood if possible. If not, concentrate on the sill, where most moisture sits.

Paint over the putty and carry a small lip onto the glass to seal the glass to the frame.