It depends who do you ask, but it seems simply that he was a Nazi sympathiser
While the official "Hamsun Online" site states that he wasn't a Nazi because his works don't express Nazi ideology (at the same time, I've found a neo-nazi site, that was saying something exactly opposite, but I don't feel comfortable providing links to it) and because "he had an argument with Hitler"*, you can't ignore the fact, that he gave his Nobel prize to Goebbels, he supported Germany in invasion of Soviet Union and war with Great Britain (he was a serious anglophobe) and (arguably) the occupation of Norway.
Yet indeed, he was acquitted after the war: he was found too old and too senile to be convicted and he pleaded ignorance regarding the Nazi war crimes.
Sources:
* In this meeting, Hamsun was trying to convince Hitler to strengthen the power of head of the puppet government Vidkun Quisling, while Hitler was trying to use Hamsun to raise the morale of German elites. Indeed the meeting ended with furious Hitler and Hamsun in tears.