miniupnpd/natpmp.c: fix walktrough of mapping "list" for NATPMP removal
This commit is contained in:
parent
350ca199c4
commit
fb1aba3c9a
|
@ -343,12 +343,12 @@ void ProcessIncomingNATPMPPacket(int s, unsigned char *msg_buff, int len,
|
|||
} else {
|
||||
syslog(LOG_INFO, "NAT-PMP %s port %hu mapping removed",
|
||||
proto2==IPPROTO_TCP?"TCP":"UDP", eport2);
|
||||
index--;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if(iport==0) {
|
||||
resp[3] = 2; /* Not Authorized/Refused */
|
||||
} else { /* iport > 0 && lifetime > 0 */
|
||||
|
|
Loading…
Reference in New Issue