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

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

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

Liviu Chircu
  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8b3b6af8a6bbf080e14067963710460cf27d2db2
      https://github.com/OpenSIPS/opensips/commit/8b3b6af8a6bbf080e14067963710460cf27d2db2
  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]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel