interface: fix return code of __interface_add()
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 26 Nov 2018 12:55:53 +0000 (13:55 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 26 Nov 2018 13:13:33 +0000 (14:13 +0100)
commitdfa4ede4e3b2fd0f50b14fcb2dd141cd73a5c74f
tree4a3fd7870e8b03bb061608f412fc48c00476fdeb
parenta82a8f65e6e6caf0a4059f4258cccca0895becbf
interface: fix return code of __interface_add()

For dynamic interfaces don't return false if vlist_find returns NULL as
the calling function will try to free iface in case of an error which has
already been freed in interface_change_config()

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface.c