diff --git a/src/manage_sql.c b/src/manage_sql.c index 0fc7b51c9..194bd4512 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -32674,6 +32674,9 @@ validate_results_port (const char *port) if (!port) return 1; + if (strcmp (port, "package") == 0) + return 0; + /* "cpe:abc", "general/tcp", "20/udp" * * We keep the "general/tcp" case pretty open because it is not clearly diff --git a/src/manage_sql_tests.c b/src/manage_sql_tests.c index f76a8870c..d6b5e4e1a 100644 --- a/src/manage_sql_tests.c +++ b/src/manage_sql_tests.c @@ -42,6 +42,7 @@ Ensure (manage_sql, validate_results_port_validates) PASS ("1/tcp"); PASS ("8080/tcp"); PASS ("65535/tcp"); + PASS ("package"); FAIL (NULL); FAIL ("cpe:/a:.joomclan:com_joomclip cpe:two");