pupnp / pupnp

libupnp: Build UPnP-compliant control points, devices, and bridges on several operating systems.
https://pupnp.github.io/pupnp
BSD 3-Clause "New" or "Revised" License
355 stars 117 forks source link

Fix crash in UpnpGetIfInfo #234

Closed jbroadus closed 3 years ago

jbroadus commented 3 years ago

Per getifaddrs documentation, the ifa_addr field of an ifaddrs structure can be null. In a real world example, an entry may be provided for the non-existent hardware address of a tunnel device. This behavior was observed with the netlink based getifaddrs implementation in glibc.

mrjimenez commented 3 years ago

Thanks!

jbroadus commented 3 years ago

Thanks for merging, but with PR #235, this one is redundant.

mrjimenez commented 3 years ago

Oh, I see. I'll fix the redundancy, but your contribution is registered and your patches are welcome.

Regards, Marcelo.

jbroadus commented 3 years ago

Oh, I see. I'll fix the redundancy, but your contribution is registered and your patches are welcome.

Regards, Marcelo.

Thank you, kind sir.