Check os_version when reading release file, os_name is not set for Debian

This commit is contained in:
Martin Willi
2012-11-30 15:48:39 +01:00
parent dd685d55e5
commit 55b323c224
+1 -1
View File
@@ -486,7 +486,7 @@ static bool extract_platform_info(os_type_t *type, chunk_t *name,
break;
}
if (!os_name.ptr)
if (!os_version.ptr)
{
DBG1(DBG_IMC, "no distribution release file found");
return FALSE;