FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_nat.c

This commit is contained in:
Andrey Volk 2019-07-12 20:44:19 +04:00
parent 862e675ffc
commit 68d680eb25
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ static void *SWITCH_THREAD_FUNC switch_nat_multicast_runtime(switch_thread_t * t
if (nat_globals.nat_type == SWITCH_NAT_TYPE_UPNP) {
/* look for our desc URL and servicetype in the packet */
if (strstr(buf, nat_globals.descURL) && (buf == NULL || strstr(buf, nat_globals.data.servicetype))) {
if (strstr(buf, nat_globals.descURL) && strstr(buf, nat_globals.data.servicetype)) {
if ((pos = strstr(buf, "NTS:"))) {
pos = pos + 4;
while (*pos && *pos == ' ') {