If his side of the story is true, which it must be since he was the one who called the cops in the first place, then it looks like the perfect example of the difference between the law (child porn possession) and justice (it was an accident and he was actually helping).