It is just a commercial discussion. Walking right out of the door because your employer ask what is your current salary is way too extreme. You are not obliged to answer. It is totally ok to rather not say or try to reverse the question. If at that point, you see that it is an issue then Yes, walk out, but not before. For a company, trying to negotiate the salary is perfectly normal and it is your duty to handle correctly this kind of questions.