From the 1917 Code of Canon Law
The Sacraments of Baptism, Confirmation and Orders which imprint a character cannot be received a second time. If, however, there is prudent doubt whether they have been received, or whether they were validly received, they may be conditionally repeated. (Canon 732.)
When Baptism is repeated conditionally, the same sponsor should, if possible, act who was present at the first Baptism; outside this case, there is no need of a sponsor in conditional Baptism. In the repetition of Baptism under condition, neither the sponsor of the first, nor the one at the second Baptism contract spiritual relationship, unless the same sponsor was present at both Baptisms. (Canon 763.)
From Denzinger:
LEO XIII 1878-1903
The Reception of Converted Heretics
[From the Decree of the Holy Office, Nov. 20, 1878]
1848. To the question: "Whether baptism should be conferred conditionally on heretics who are converted to the Catholic religion, from whatever locality they come, and to whatever sect they pertain?"
The reply is: "In the negative. But in the conversion of heretics, from whatever place or from whatever sect they come, inquiry should be made regarding the validity of the baptism in the heresy which was adopted. Then after the examination has been established in individual cases, if it is found either that none was conferred, or it was conferred without effect, they shall have to be baptized absolutely. But if according to circuмstances and by reason of the localities, after the investigation has been completed, nothing is discovered in favor either of validity or invalidity, or, probable doubt still exists regarding the validity of the baptism, then let them be baptized conditionally, in secret. Finally, if it shall be established that it was valid, they will have to be received only for the profession of faith."