ctdb-daemon: Consolidate interface checking with interface parsing
authorMartin Schwenke <martin@meltin.net>
Sat, 20 Aug 2016 10:34:33 +0000 (20:34 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 8 Sep 2016 04:57:20 +0000 (06:57 +0200)
commitc3502cf9f9e99539e69ca92d1a78ca3aff71b3df
tree408e1e32fa6ea178b414a530108e864157c0873e
parent05665d9ede9f78e466ec40f1630a1fcb4ff357cb
ctdb-daemon: Consolidate interface checking with interface parsing

There's no point parsing the interfaces twice, especially since it
doesn't improve error handling.

This also removes a use of strdup(3)/free(3), which is not generally
used in our code.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c