Merge pull request #54 from razzfazz/fix_no_eport_error_code

miniupnpd/natpmp.c: return correct error code when all external ports in...
This commit is contained in:
Thomas BERNARD 2014-03-01 13:51:25 +01:00
commit d38902230e
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ void ProcessIncomingNATPMPPacket(int s, unsigned char *msg_buff, int len,
if(eport == eport_first) { /* no external port available */
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] = 3; /* Failure */
resp[3] = 4; /* Out of resources */
break;
}
continue;