vzctl set --ipadd: fix setting IP address with a netmask

When netmasks were added to vzctl (as per bug #1088) this place
was forgotten. Unfortunately due to 'return 0' statement in case of error
from get_netaddr() this error went unnoticed.

Fix the case (by removing /mask from IP address string).

Fixes http://bugzilla.openvz.org/2001
http://bugzilla.openvz.org/1088

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed