Skip to content

miniupnpd : Handling the failure while getting IP addr for an interface

Padmalochan Mohapatra requested to merge upnp-cdr into devel

In the bumped up version of miniupnpd (2.3.3) , getifaddrs() api has been used instead of ioctl socket call to get the IP address of an interface. This has been done by enabling the macro (#define USE_GETIFADDRS) , which was not enabled in the previous version 2.2.3 In this scenario, if the IP candidate is not found for an interface, it should return an error code, which is not happening.

Added an else part to handle the failure case by returning an error code.

Merge request reports