[OpenSIPS-Devel] [OpenSIPS/opensips] 3a0b31: Fix what seems to be a typo, calling sockaddru_len...

Maksym Sobolyev noreply at github.com
Tue Mar 7 19:04:37 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3a0b316a11a5328d943709216f8a3494ddb94c90
      https://github.com/OpenSIPS/opensips/commit/3a0b316a11a5328d943709216f8a3494ddb94c90
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  Fix what seems to be a typo, calling sockaddru_len() on unitialized
local structure is likely to produce bogus result causing getsockname()
to fail silently and produce no useable address. This error has
been masked on Linux, since Linux has no sa_len structure and the
sockaddru_len() in that case defaults to sizeof(struct sockaddr_in)
unless local_su happens to have s.sa_family==AF_INET6. This however
means that IPv6 has been somewhat broken for TCP & TLS.


  Commit: addfa631ce80b18b0cbef004f3aaab9c70dfba11
      https://github.com/OpenSIPS/opensips/commit/addfa631ce80b18b0cbef004f3aaab9c70dfba11
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M .github/workflows/main.yml

  Log Message:
  -----------
  Bye ubuntu-18.04.


Compare: https://github.com/OpenSIPS/opensips/compare/9999d313733d...addfa631ce80



More information about the Devel mailing list