[OpenSIPS-Devel] [OpenSIPS/opensips] e563f7: net/tcp: save fd before sending the conn to main

Răzvan Crainea noreply at github.com
Fri Feb 8 16:30:18 EST 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e563f7dbdfeb50005e4fae2d3d298e5683b7e52f
      https://github.com/OpenSIPS/opensips/commit/e563f7dbdfeb50005e4fae2d3d298e5683b7e52f
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2019-02-08 (Fri, 08 Feb 2019)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  net/tcp: save fd before sending the conn to main

Save local fd of the connection before sending it to TCP main, to make
sure we it won't get overwritten by main, and we close somebody else's
file descriptor.

(cherry picked from commit ed4e862db1dbeefd6db8559425c2da26fa239dd9)





More information about the Devel mailing list