From: Vincent Bernat Date: Sun, 26 Oct 2025 07:53:26 +0000 (+0100) Subject: daemon/lldpd: handle case where PRETTY_NAME is empty X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66179edbe26762d226384a3f1d214ed951f7bcb;p=thirdparty%2Flldpd.git daemon/lldpd: handle case where PRETTY_NAME is empty Fix #751 --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index b5c87b5d..78dffee8 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -861,6 +861,7 @@ lldpd_get_os_release() if (key == NULL) continue; val = strtok(NULL, "="); + if (val == NULL) continue; if (strncmp(key, "PRETTY_NAME", sizeof(line)) == 0) { strlcpy(release, val, sizeof(line));