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

Liviu Chircu liviu at opensips.org
Thu Sep 27 08:16:58 EDT 2018


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


More information about the Devel mailing list