You did the right thing. The guy was hungry and you fed him. There is no real moral dilemma here, imo. Good should be about results, not necessarily the actions in and of themselves.