service: Validate the IP addresses before use
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 4 Feb 2013 14:37:56 +0000 (16:37 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 5 Feb 2013 11:29:41 +0000 (13:29 +0200)
commit0ee0b1416eee3bb0c9765102a2720e11360aa4cd
treef19f292d5d96b9f258eb0625cf41990ab6914789
parent95a7dd2b419c243e67d29a155b3122ea5e0fbd8e
service: Validate the IP addresses before use

When setting IP address information via D-Bus, first create a new ipconfig
structure to hold the values. If the values were validated correctly, update
the service ipconfig structure with the new values. In order to achieve
this, refactor the existing code.

Fixes BMC#25930
src/service.c