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:
commit
d38902230e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue