From b38885cec146ea32f40e974b2653e743e8233976 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Thu, 13 Feb 2014 03:41:03 +0100 Subject: [PATCH] Correctly report configuration problem with masquerading script (instead of crashing). --- src/igs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/igs.c b/src/igs.c index 58ad34b..b7f6fed 100644 --- a/src/igs.c +++ b/src/igs.c @@ -347,8 +347,11 @@ void init_internet_gateway_search(void) * If we are sharing our internet connection, activate the * masquerading. */ - if(server_opt.share_internet) - igw_exec_masquerade_sh(server_opt.ip_masq_script, 0); + if(server_opt.share_internet) { + igw_exec_masquerade_sh(server_opt.ip_masq_script, 0); + if(!server_opt.ip_masq_script) + fatal("No masquerading script was configured!"); + }; /* * Get the default gateway route currently set in the kernel routing