Case of the ends justify the means I suppose.
He was not in prison, had served his time& we don't know anything about him. Maybe just as well.
Police do sometimes go into prisons and do deals with people doing time in order to prevent further crimes.