Boundary conditions for non-equilibrium carrier densities and electric potential in a real metal-semiconductor junction are obtained on the basis of the continuity equations and the Poisson equation. The non-steady state case has been analysed. It is taken into account that holes do not penetrate into metal and the chemical potential of metal is constant. The both cases of open or loaded by a resistor external electric circuit are considered.