summaryrefslogtreecommitdiffstats
path: root/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/command_line/daemon/hicnLightDaemon_main.c')
-rw-r--r--hicn-light/src/command_line/daemon/hicnLightDaemon_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c b/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c
index ce8c373ca..9a6c352fb 100644
--- a/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c
+++ b/hicn-light/src/command_line/daemon/hicnLightDaemon_main.c
@@ -365,6 +365,13 @@ int main(int argc, const char *argv[]) {
// this will update the clock to the tick clock
Forwarder *forwarder = forwarder_Create(logger);
+ if (forwarder == NULL) {
+ logger_Log(logger, LoggerFacility_Core, PARCLogLevel_Error, "daemon",
+ "Forwarder initialization failed. Are you running it with sudo "
+ "privileges?");
+ return -1;
+ }
+
Configuration *configuration = forwarder_GetConfiguration(forwarder);
if (capacity > -1) {