Dry rot is caused an organism that needs to be killed/removed. Remove as much damaged wood as possible, (Wire brush will remove most of it if it's not bad.) Cut it out if it's more extensive. Then treat with a boric acid solution. Repair with an epoxy wood filler or sister/replace as necessary. (Bondo will also work well instead of an epoxy wood filler in this application)