Bug#1949: RETURN/redo can break APPLY security