[OpenSIPS/opensips] bf7a5a: ip_addr2a(): Improve error handling

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[OpenSIPS/opensips] bf7a5a: ip_addr2a(): Improve error handling

Liviu Chircu
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: bf7a5a72977ae4abca8ddbd43ed10ffef1cdd969
  Author: Liviu Chircu <[hidden email]>
  Date:   2018-09-27 (Thu, 27 Sep 2018)

  Changed paths:
    M ip_addr.h

  Log Message:
  ip_addr2a(): Improve error handling

Do not return a NULL pointer when attempting to print an unknown address
family, rather an empty string.

Reported by @danceinrain
Fixes #1478

(cherry picked from commit a5a3644a4bef21f0fc042d92d4e0166bb94a9ffa)

      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

Devel mailing list
[hidden email]