--- embedaddon/strongswan/src/libimcv/imc/imc_os_info.c 2020/06/03 09:46:43 1.1.1.1 +++ embedaddon/strongswan/src/libimcv/imc/imc_os_info.c 2021/03/17 00:20:08 1.1.1.2 @@ -487,7 +487,13 @@ static bool extract_platform_info(os_type_t *type, chu os_type = OS_TYPE_DEBIAN; os_version.ptr = buf; - pos = strchr(buf, '\n'); + + /* extract major release number only */ + pos = strchr(buf, '.'); + if (!pos) + { + pos = strchr(buf, '\n'); + } if (!pos) { DBG1(DBG_PTS, "failed to find end of release string");