N.E.2d 399.) Respondent’s petition challenged this domicile and thus challenged the subject matter jurisdiction of the court. Although petitioner contends that this matter should have been brought as a section 72 petition, we note that a void judgment is subject to attack at any time either in a direct or a collateral proceeding
(City of Chicago v. Fair Employment Practices Com. (1976), 65 Ill.. 2d 108, 357 N.E.2d 1154;
Barnard v. Michael (1945), 392 Ill. 130, 63 N.E.2d 858), and such an attack is not considered as being brought under section 72.
First Federal Savings &
Loan Association v. Brown (1979), 74 Ill. App. 3d 901, 393 N.E.2d 574.
It has long been held in this State that one who accepts the benefits of a divorce decree may be estopped from subsequently challenging the validity of that decree. (Martin v. Martin (1978), 57 Ill. App. 3d 486, 373 N.E.2d 602; Grimm v. Grimm (1922), 302 Ill. 511, 135 N.E. 19; Scase v. Johnson (1906), 130 Ill. App. 35.) One such benefit has been held to be remarriage in reliance on the validity of the prior divorce decree. (Webb v. Webb (1970), 130 Ill. App. 2d 618, 264 N.E.2d 594; McDonald v. Neale (1962), 35 Ill. App. 2d 140, 182 N.E.2d 366, cert. denied (1963), 372 U.S. 911, 9 L. Ed. 2d 719, 83 S. Ct. 725; Pierotti v. Pierotti (1951), 343 Ill. App. 116, 98 N.E.2d 875; Scase v. Johnson (1906), 130 Ill. App. 35; see Annot., 12 A.L.R.2d 153, 156 (1950).) Indeed, the courts have noted that such remarriage provides an additional basis for estoppel, the protection of innocent third parties. As was stated in McDonald:
“The rule of estoppel, founded upon the public policy of protecting the marital status and good character of innocent third persons, the legitimacy of children, and the rights and position of persons whose status has been finalized by decree of divorce, will not permit parties to assert inconsistent legal rights *." 35 Ill. App. 2d 140, 151, 182 N.E.2d 366, 371.
Respondent does not appear to challenge these principles, instead he contends they are inapplicable where the decree challenged is alleged to be void for lack of subject matter jurisdiction. However, we find that Illinois case law supports the application of these estoppel principles even in such cases. Indeed the trial court in this cause expressly relied on such a case, Varap v. Varap (1966), 76 Ill. App. 2d 402, 222 N.E.2d 77. In Varap the husband’s first wife obtained an Arizona divorce in 1957. The husband remarried and in 1965 his second wife obtained a divorce. The husband appealed from this decree, claiming that the Arizona decree was void ab initio, thus invalidating his second marriage. That challenge was based in part on the assertion that his first wife had not lived in Arizona for the period of time required as a condition precedent to obtaining the divorce. The trial court struck the husband’s pleadings related to this claim. The appellate court held that it was unnecessary to determine