diff --git a/package/gluon-mesh-vpn-fastd/src/respondd.c b/package/gluon-mesh-vpn-fastd/src/respondd.c index 4d4b5a37..4a321d30 100644 --- a/package/gluon-mesh-vpn-fastd/src/respondd.c +++ b/package/gluon-mesh-vpn-fastd/src/respondd.c @@ -65,7 +65,7 @@ static struct json_object * get_fastd_version(void) { } const char *version = line; - if (strncmp(version, "fastd ", 6) == 0) + if (version && strncmp(version, "fastd ", 6) == 0) version += 6; struct json_object *ret = gluonutil_wrap_string(version);