aboutsummaryrefslogtreecommitdiffstats
path: root/community/libupnp/CVE-2020-13848.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libupnp/CVE-2020-13848.patch')
-rw-r--r--community/libupnp/CVE-2020-13848.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/community/libupnp/CVE-2020-13848.patch b/community/libupnp/CVE-2020-13848.patch
deleted file mode 100644
index ec4e762812..0000000000
--- a/community/libupnp/CVE-2020-13848.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/upnp/src/genlib/service_table/service_table.c b/upnp/src/genlib/service_table/service_table.c
-index 98c2c0f..c2c4545 100644
---- a/upnp/src/genlib/service_table/service_table.c
-+++ b/upnp/src/genlib/service_table/service_table.c
-@@ -300,12 +300,12 @@ FindServiceEventURLPath( service_table * table,
- uri_type parsed_url;
- uri_type parsed_url_in;
-
-- if( ( table )
-- &&
-- ( parse_uri( eventURLPath,
-- strlen( eventURLPath ),
-- &parsed_url_in ) == HTTP_SUCCESS ) ) {
-+ if (!table || !eventURLPath) {
-+ return NULL;
-+ }
-
-+ if (parse_uri(eventURLPath, strlen(eventURLPath), &parsed_url_in) ==
-+ HTTP_SUCCESS) {
- finger = table->serviceList;
- while( finger ) {
- if( finger->eventURL )
-@@ -352,11 +352,11 @@ FindServiceControlURLPath( service_table * table,
- uri_type parsed_url;
- uri_type parsed_url_in;
-
-- if( ( table )
-- &&
-- ( parse_uri
-- ( controlURLPath, strlen( controlURLPath ),
-- &parsed_url_in ) == HTTP_SUCCESS ) ) {
-+ if (!table || !controlURLPath) {
-+ return NULL;
-+ }
-+ if (parse_uri(controlURLPath, strlen(controlURLPath), &parsed_url_in) ==
-+ HTTP_SUCCESS) {
- finger = table->serviceList;
- while( finger ) {
- if( finger->controlURL )