ANNEX TO THE CONVENTION : Regulations respecting the laws and customs of war on land #Section II : On hostilities #Chapter II : On spies - Art. 31.
Art. 31. A spy who, after rejoining the army to which he belongs, is subsequently captured by the enemy, is treated as a prisoner of war, and incurs no responsibility for his previous acts of espionage.