Merge pull request #56 from razzfazz/natpmp_cleanup

miniupnpd/natpmp.c: remove redundant break statements
This commit is contained in:
Thomas BERNARD 2014-03-07 22:54:42 +01:00
commit 69643d377c
1 changed files with 0 additions and 2 deletions

View File

@ -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", syslog(LOG_ERR, "Failed to find available eport for NAT-PMP %hu %s->%s:%hu",
eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport); eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport);
resp[3] = 4; /* Out of resources */ resp[3] = 4; /* Out of resources */
break;
} }
continue; 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", syslog(LOG_ERR, "Failed to find available eport for NAT-PMP %hu %s->%s:%hu",
eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport); eport, (proto==IPPROTO_TCP)?"tcp":"udp", senderaddrstr, iport);
resp[3] = 4; /* Out of resources */ resp[3] = 4; /* Out of resources */
break;
} }
continue; continue;
} }