Turn the HVAC unit off. Remove the cover to the compartment on the furnace that houses the evaporator coils, with the drain pan directly underneath the coils.
Vacuum out any remaining water from the drain pan, using a wet/dry vacuum.
Scrub away any rust from the corroded area of the drain pan, using a wire brush. Remove the debris from the pan with the wet/dry vacuum. Wipe the drain pan completely dry, using a rag.
Spray drain pan repair spray, which comes in an aerosol can, onto the drain pan holes, to coat and seal them.
Place the cover back on the compartment that houses the coils. Wait the proper amount of time for the spray to dry, which is sometimes between 20 and 30 minutes, and turn the air conditioner on. Check later to make sure the drain pan does not leak any more.