ipconfig: Save prefixlen only if not cleared
authorJulien Massot <jmassot@aldebaran-robotics.com>
Fri, 15 Jun 2012 13:15:31 +0000 (13:15 +0000)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 25 Jun 2012 06:49:30 +0000 (09:49 +0300)
commita802b6f66cd572d532cc4d1f3e589beee58ed0e7
tree23a49fcdb0d6615b5f441c4fc346b1020444b42c
parent513387fe71c00202f2e73703cbb7beef0150d9a7
ipconfig: Save prefixlen only if not cleared

This commit fixes a bug when using manual ipv4 addressing.
The first time it works, but once the service is reconnected it uses
an invalid netmask: 255.255.255.255.
src/ipconfig.c