Nothing wrong with Ricky's statement. Annulment makes it as if the marriage never were, so any children therefrom are indeed illegitimate.
And I've got two middle fingers for anyone who says I'm an illegitimate anything.