From 45ca87272954f46eb6d55365d5a2fbe3520d66ce Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Jun 2014 16:53:29 +0200 Subject: service: do not emit any service events before the ubus connection is up Signed-off-by: Felix Fietkau --- service/service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service') diff --git a/service/service.c b/service/service.c index 6426929..74feded 100644 --- a/service/service.c +++ b/service/service.c @@ -453,6 +453,9 @@ service_start_early(char *name, char *cmdline) void service_event(const char *type, const char *service, const char *instance) { + if (!ctx) + return; + blob_buf_init(&b, 0); blobmsg_add_string(&b, "service", service); if (instance) -- cgit v1.2.3