[OpenSIPS-Devel] [OpenSIPS/opensips] d44184: stun: Fix regression in 'use_listeners_as_primary'...

Liviu Chircu noreply at github.com
Wed Sep 17 13:36:07 UTC 2025


  Branch: refs/heads/3.6
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d44184d66db60f55178a4edd6bc7e41cc616cc66
      https://github.com/OpenSIPS/opensips/commit/d44184d66db60f55178a4edd6bc7e41cc616cc66
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M modules/stun/stun.c
    M modules/stun/stun.h

  Log Message:
  -----------
  stun: Fix regression in 'use_listeners_as_primary' feature

In commit 8e6000d5f0d8d, it was missed that FD_SET(fd_x...) calls are
idempotent, while reactor_add_reader(fd_x...) calls are not. So when you
perform them multiple times (which the 'use_listeners_as_primary'
feature MAY do), OpenSIPS startup would now ERROR and abort.

Many thanks to Bernard Buitenhuis for an accurate report and sponsoring
the fix!

(cherry picked from commit 561a15515fd1bfac942c34bdbb8d9ce3c0c3ea3a)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list