diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-03-21 13:37:54 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-03-21 13:37:54 +0200 |
commit | a4242c42b24d936c1ca79f98aa1062177c222c04 (patch) | |
tree | d666acda26cc849763daa123314b0bc85c8d275c /external/miniupnpc/upnpcommands.c | |
parent | Merge pull request #743 (diff) | |
download | monero-a4242c42b24d936c1ca79f98aa1062177c222c04.tar.xz |
update miniupnpc
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'; |