The first sitting was forgotten and the person is not yet fully upright. What is the basic rule?

Sujud al-Sahw: Cause, Method, Timing, and Special Cases