Merge pull request #2624 from freifunk-gluon/backport-2594-to-v2021.1.x

This commit is contained in:
Martin Weinelt 2022-08-29 14:16:58 +02:00 committed by GitHub
commit f1f7f616aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);