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