v29.4-roots.1 · Commit 7: [PATCH 07/13] release: establish Roots maintenance and assurance
depends/patches/miniupnpc/dont_leak_info.patch
Before: depends/patches/miniupnpc/dont_leak_info.patch · After: depends/patches/miniupnpc/dont_leak_info.patch
File metadata
index 6bccc8449375be20cff18bb41f61844dbb99af38..f11cffe0b7f98247fa340ed0e2d0a79cbdfc334b 100644
Download original patch · Release notes
Diff rows 1–39 of 39. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
depends/patches/miniupnpc/dont_leak_info.patch
CHANGED
|
@@ -9,24 +9,24 @@ index 903ac5f..046e0ea 100644
|
|
| 9 |
--- a/src/minisoap.c
|
| 10 |
+++ b/src/minisoap.c
|
| 11 |
@@ -90,7 +90,7 @@ int soapPostSubmit(SOCKET fd,
|
| 12 |
-
headerssize = snprintf(headerbuf, sizeof(headerbuf),
|
| 13 |
-
"POST %s HTTP/%s\\r\\n"
|
| 14 |
-
"Host: %s%s\\r\\n"
|
| 15 |
-
- "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\\r\\n"
|
| 16 |
-
+ "User-Agent: " UPNP_VERSION_STRING "\\r\\n"
|
| 17 |
-
"Content-Length: %d\\r\\n"
|
| 18 |
#if (UPNP_VERSION_MAJOR == 1) && (UPNP_VERSION_MINOR == 0)
|
| 19 |
-
"Content-Type: text/xml\\r\\n"
|
| 20 |
diff --git a/src/miniwget.c b/src/miniwget.c
|
| 21 |
index e76a5e5..0cc36fe 100644
|
| 22 |
--- a/src/miniwget.c
|
| 23 |
+++ b/src/miniwget.c
|
| 24 |
@@ -444,7 +444,7 @@ miniwget3(const char * host,
|
| 25 |
-
"GET %s HTTP/%s\\r\\n"
|
| 26 |
-
"Host: %s:%d\\r\\n"
|
| 27 |
-
"Connection: close\\r\\n"
|
| 28 |
-
- "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\\r\\n"
|
| 29 |
-
+ "User-Agent: " UPNP_VERSION_STRING "\\r\\n"
|
| 30 |
-
"\\r\\n",
|
| 31 |
-
path, httpversion, host, port);
|
| 32 |
-
if ((unsigned int)len >= sizeof(buf))
|
|
|
|
| 9 |
--- a/src/minisoap.c
|
| 10 |
+++ b/src/minisoap.c
|
| 11 |
@@ -90,7 +90,7 @@ int soapPostSubmit(SOCKET fd,
|
| 12 |
+
headerssize = snprintf(headerbuf, sizeof(headerbuf),
|
| 13 |
+
"POST %s HTTP/%s\r\n"
|
| 14 |
+
"Host: %s%s\r\n"
|
| 15 |
+
- "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
|
| 16 |
+
+ "User-Agent: " UPNP_VERSION_STRING "\r\n"
|
| 17 |
+
"Content-Length: %d\r\n"
|
| 18 |
#if (UPNP_VERSION_MAJOR == 1) && (UPNP_VERSION_MINOR == 0)
|
| 19 |
+
"Content-Type: text/xml\r\n"
|
| 20 |
diff --git a/src/miniwget.c b/src/miniwget.c
|
| 21 |
index e76a5e5..0cc36fe 100644
|
| 22 |
--- a/src/miniwget.c
|
| 23 |
+++ b/src/miniwget.c
|
| 24 |
@@ -444,7 +444,7 @@ miniwget3(const char * host,
|
| 25 |
+
"GET %s HTTP/%s\r\n"
|
| 26 |
+
"Host: %s:%d\r\n"
|
| 27 |
+
"Connection: close\r\n"
|
| 28 |
+
- "User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
|
| 29 |
+
+ "User-Agent: " UPNP_VERSION_STRING "\r\n"
|
| 30 |
+
"\r\n",
|
| 31 |
+
path, httpversion, host, port);
|
| 32 |
+
if ((unsigned int)len >= sizeof(buf))
|