diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-03-21 22:49:05 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-03-21 22:49:06 +0200 |
commit | 8146497f4c0689712f2de1d49c45afea528ef735 (patch) | |
tree | cc4f9cee6bb2b040b6ada519a1641c1975c6e5e3 /external/miniupnpc/upnpcommands.c | |
parent | Merge pull request #743 (diff) | |
parent | fix building on FreeBSD (diff) | |
download | monero-8146497f4c0689712f2de1d49c45afea528ef735.tar.xz |
Merge pull request #744
40974b1 fix building on FreeBSD (Riccardo Spagni)
1800d61 bump miniupnpc API version number (Riccardo Spagni)
a4242c4 update miniupnpc (Riccardo Spagni)
Diffstat (limited to 'external/miniupnpc/upnpcommands.c')
-rw-r--r-- | external/miniupnpc/upnpcommands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/miniupnpc/upnpcommands.c b/external/miniupnpc/upnpcommands.c index cabdb50d8..76cf9e391 100644 --- a/external/miniupnpc/upnpcommands.c +++ b/external/miniupnpc/upnpcommands.c @@ -616,14 +616,14 @@ UPNP_GetGenericPortMappingEntry(const char * controlURL, protocol[3] = '\0'; } p = GetValueFromNameValueList(&pdata, "NewInternalClient"); - if(p && intClient) + if(p) { strncpy(intClient, p, 16); intClient[15] = '\0'; r = 0; } p = GetValueFromNameValueList(&pdata, "NewInternalPort"); - if(p && intPort) + if(p) { strncpy(intPort, p, 6); intPort[5] = '\0'; |