What affiliation to put on paper?
Put the current affiliation and make a comment in the title page (i.e., a footnote) stating "this work was conducted as part of a master's dissertation [in the older university]".