miniupnpd/natpmp.c: remove redundant break statements
These two break statements are redundant: The subsequent continue statement will cause the loop condition to be re-evaluated, at which point the loop will terminate if resp[3] != 0.
This commit is contained in:
parent
e385db03b9
commit
ba04327bb0
|
@ -285,7 +285,6 @@ void ProcessIncomingNATPMPPacket(int s, unsigned char *msg_buff, int len,
|
|||
syslog(LOG_ERR, "Failed to find available eport for NAT-PMP %hu %s->%s:%hu",
|
||||
eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport);
|
||||
resp[3] = 4; /* Out of resources */
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -310,7 +309,6 @@ void ProcessIncomingNATPMPPacket(int s, unsigned char *msg_buff, int len,
|
|||
syslog(LOG_ERR, "Failed to find available eport for NAT-PMP %hu %s->%s:%hu",
|
||||
eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport);
|
||||
resp[3] = 4; /* Out of resources */
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue