[OpenSIPS-Devel] [OpenSIPS/opensips] 59cf57: core "net:" statistics: Fix an integer signedness ...

Liviu Chircu liviu at opensips.org
Thu Mar 30 06:55:21 EDT 2017


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 59cf57244de732dca225a6888df140f1f945eadd
      https://github.com/OpenSIPS/opensips/commit/59cf57244de732dca225a6888df140f1f945eadd
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M socket_info.c
    M socket_info.h

  Log Message:
  -----------
  core "net:" statistics: Fix an integer signedness bug

Due to runaway usage of bitwise shifting, the byte matching code would fail to
work for interfaces having low order bytes with greater values than 128
(e.g. udp:31.32.33.147:5060). Consequently, all "net:" statistics for them
would show up as zeroes.

Thanks to Bogdan and Răzvan for discovering and troubleshooting

(cherry picked from commit 009691c6c7672927f68cfb8a0340166167a04107)




More information about the Devel mailing list