A San Benito dad accused of giving his 9-month-old son a potentially lethal over-the-counter medicine has been sentenced to two years in federal prison for his role in a gun-buying scheme.