troglobit / mdnsd

Jeremie Miller's original mdnsd
BSD 3-Clause "New" or "Revised" License
56 stars 35 forks source link

Avoid strcmp with NULL pointers in _a_match #23

Closed bong1991 closed 4 years ago

bong1991 commented 4 years ago

Hey! In some circumstances, the strings to compare in _a_match are NULL pointers. In order to avoid the application to crash, I added a check to confirm the validity of the string pointers.

Best Regards Thomas

troglobit commented 4 years ago

Awesome find, thank you! :)