There are many chemicals on the market to kill rot and harden damaged wood, but its a bit like filling over rust on old cars, you will slow down the decay but not stop it. The only cure is to cut out the rot and replace with good wood. Usually there is a reason for the rot, could be neglected painting or something more structural like badly fitted or blocked guttering, so its important to find out the underlying cause of the rot.