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

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

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

Liviu Chircu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a5a3644a4bef21f0fc042d92d4e0166bb94a9ffa
      https://github.com/OpenSIPS/opensips/commit/a5a3644a4bef21f0fc042d92d4e0166bb94a9ffa
  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



      **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]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel