From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH 2/3] zone: fix zone_new Date: Wed, 19 Jul 2017 16:10:21 +0200 Message-ID: <1500473422-24614-2-git-send-email-jonatan.schlag@ipfire.org> In-Reply-To: <1500473422-24614-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1577930221999773528==" List-Id: --===============1577930221999773528== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Everytime somethings goes wrong when we call hook_new we wannt to call zone_d= estroy. Not only when we get an EXIT_ERROR also when we get an EXIT_CONF_ERROR and so= on. Signed-off-by: Jonatan Schlag --- src/functions/functions.zone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/functions.zone b/src/functions/functions.zone index 11a8dc2..91ce629 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -243,7 +243,7 @@ zone_new() { =20 # Maybe the zone new hook did not exit correctly. # If this is the case we remove the created zone immediately. - if [ "${ret}" =3D "${EXIT_ERROR}" ]; then + if [ "${ret}" !=3D "${EXIT_OK}" ]; then zone_destroy_now "${zone}" return ${EXIT_ERROR} fi --=20 2.6.3 --===============1577930221999773528==--