[Klockwork] NULL pointer may be dereferenced. (#24)

    Fix issue #24: ip_address may be NULL and may be dereferenced.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Klockwork] NULL pointer may be dereferenced. (#25)

Fix issue #25: ip_address may be NULL and may be dereferenced.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>