Skip to content

Commit e92d55b

Browse files
committed
Merge pull request #88285 from Chubercik/miniupnpc-2.2.6
miniupnpc: Update to version 2.2.6
2 parents e0c24eb + 72b80b3 commit e92d55b

File tree

8 files changed

+18
-14
lines changed

8 files changed

+18
-14
lines changed

COPYRIGHT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ License: CC0-1.0
350350

351351
Files: ./thirdparty/miniupnpc/
352352
Comment: MiniUPnP Project
353-
Copyright: 2005-2023, Thomas Bernard
353+
Copyright: 2005-2024, Thomas Bernard
354354
License: BSD-3-clause
355355

356356
Files: ./thirdparty/minizip/

thirdparty/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,14 @@ to solve some MSVC warnings. See the patches in the `patches` directory.
584584
## miniupnpc
585585

586586
- Upstream: https://github.com/miniupnp/miniupnp
587-
- Version: 2.2.5 (58837ef586278d18cbebee50be758835ed4be79a, 2023)
587+
- Version: 2.2.6 (faad29d7300f1bfa9dc7795031993c04c5191f59, 2024)
588588
- License: BSD-3-Clause
589589

590590
Files extracted from upstream source:
591591

592592
- Copy `miniupnpc/src` and `miniupnpc/include` to `thirdparty/miniupnpc`
593593
- Remove the following test or sample files:
594-
`listdevices.c minihttptestserver.c miniupnpcmodule.c upnpc.c upnperrors.* test*`
594+
`listdevices.c,minihttptestserver.c,miniupnpcmodule.c,upnpc.c,upnperrors.*,test*`
595595
- `LICENSE`
596596

597597
The only modified file is `src/miniupnpcstrings.h`, which was created for Godot

thirdparty/miniupnpc/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2005-2023, Thomas BERNARD
3+
Copyright (c) 2005-2024, Thomas BERNARD
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

thirdparty/miniupnpc/include/miniupnpc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: miniupnpc.h,v 1.62 2023/06/11 23:25:46 nanard Exp $ */
1+
/* $Id: miniupnpc.h,v 1.63 2024/01/04 00:45:17 nanard Exp $ */
22
/* vim: tabstop=4 shiftwidth=4 noexpandtab
33
* Project: miniupnp
44
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
@@ -20,7 +20,7 @@
2020
#define UPNPDISCOVER_MEMORY_ERROR (-102)
2121

2222
/* versions : */
23-
#define MINIUPNPC_VERSION "2.2.5"
23+
#define MINIUPNPC_VERSION "2.2.6"
2424
#define MINIUPNPC_API_VERSION 17
2525

2626
/* Source port:

thirdparty/miniupnpc/src/minisoap.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* $Id: minisoap.c,v 1.30 2020/11/09 19:27:42 nanard Exp $ */
1+
/* $Id: minisoap.c,v 1.32 2023/07/05 22:43:50 nanard Exp $ */
22
/* vim: tabstop=4 shiftwidth=4 noexpandtab
33
* Project : miniupnp
44
* Author : Thomas Bernard
5-
* Copyright (c) 2005-2020 Thomas Bernard
5+
* Copyright (c) 2005-2023 Thomas Bernard
66
* This software is subject to the conditions detailed in the
77
* LICENCE file provided in this distribution.
88
*
@@ -90,9 +90,13 @@ int soapPostSubmit(SOCKET fd,
9090
headerssize = snprintf(headerbuf, sizeof(headerbuf),
9191
"POST %s HTTP/%s\r\n"
9292
"Host: %s%s\r\n"
93-
"User-Agent: " OS_STRING ", " UPNP_VERSION_STRING ", MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
93+
"User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
9494
"Content-Length: %d\r\n"
95+
#if (UPNP_VERSION_MAJOR == 1) && (UPNP_VERSION_MINOR == 0)
9596
"Content-Type: text/xml\r\n"
97+
#else
98+
"Content-Type: text/xml; charset=\"utf-8\"\r\n"
99+
#endif
96100
"SOAPAction: \"%s\"\r\n"
97101
"Connection: Close\r\n"
98102
"Cache-Control: no-cache\r\n" /* ??? */

thirdparty/miniupnpc/src/minissdpc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ receiveDevicesFromMiniSSDPD(int s, int * error)
338338
#ifdef DEBUG
339339
printf(" usnsize=%u\n", usnsize);
340340
#endif /* DEBUG */
341-
tmp = (struct UPNPDev *)malloc(sizeof(struct UPNPDev)+urlsize+stsize+usnsize);
341+
tmp = (struct UPNPDev *)malloc(sizeof(struct UPNPDev)+urlsize+stsize+usnsize+3);
342342
if(tmp == NULL) {
343343
if (error)
344344
*error = MINISSDPC_MEMORY_ERROR;

thirdparty/miniupnpc/src/miniupnpcstrings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define MINIUPNPCSTRINGS_H_INCLUDED
33

44
#define OS_STRING "Godot Engine/1.0"
5-
#define MINIUPNPC_VERSION_STRING "2.2.5"
5+
#define MINIUPNPC_VERSION_STRING "2.2.6"
66

77
#if 0
88
/* according to "UPnP Device Architecture 1.0" */

thirdparty/miniupnpc/src/miniwget.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* $Id: miniwget.c,v 1.82 2020/05/29 21:14:22 nanard Exp $ */
1+
/* $Id: miniwget.c,v 1.85 2023/06/15 21:47:50 nanard Exp $ */
22
/* Project : miniupnp
33
* Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
44
* Author : Thomas Bernard
5-
* Copyright (c) 2005-2020 Thomas Bernard
5+
* Copyright (c) 2005-2023 Thomas Bernard
66
* This software is subject to the conditions detailed in the
77
* LICENCE file provided in this distribution. */
88

@@ -444,7 +444,7 @@ miniwget3(const char * host,
444444
"GET %s HTTP/%s\r\n"
445445
"Host: %s:%d\r\n"
446446
"Connection: Close\r\n"
447-
"User-Agent: " OS_STRING ", " UPNP_VERSION_STRING ", MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
447+
"User-Agent: " OS_STRING " " UPNP_VERSION_STRING " MiniUPnPc/" MINIUPNPC_VERSION_STRING "\r\n"
448448

449449
"\r\n",
450450
path, httpversion, host, port);

0 commit comments

Comments
 (0)