Indian authorities have handed over to Pakistan two teen-aged boys who mistakenly crossed to the Indian-held Kashmir five months ago and were investigated for alleged involvement in a terrorist attack.

Asif Mahmood, spokesman for Pakistan's paramilitary rangers, said Friday that Indian officials handed over Ahsan Khurshid and Faisal Awan at the Wagha border point near Lahore, and they were subsequently released to their families.

Officials in Indian-held Kashmir said the two were released after investigators found they had no links to attackers who stormed an Indian military camp in September in Kashmir and killed 19 soldiers.

Pakistan and India have tensed relations and fought two of their three wars over the Kashmir region.