Made failed pinhole request actually fail in terms of return value too.

This commit is contained in:
Markus Stenberg 2014-05-13 13:54:25 +03:00 committed by Thomas Bernard
parent 924b6d1613
commit 6b3ff0242d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ upnp_add_inboundpinhole(const char * raddr,
#if defined(USE_PF) || defined(USE_NETFILTER) #if defined(USE_PF) || defined(USE_NETFILTER)
*uid = add_pinhole (0/*ext_if_name*/, raddr, rport, *uid = add_pinhole (0/*ext_if_name*/, raddr, rport,
iaddr, iport, proto, desc, timestamp); iaddr, iport, proto, desc, timestamp);
return 1; return *uid >= 0 ? 1 : -1;
#else #else
return -42; /* not implemented */ return -42; /* not implemented */
#endif #endif