[OpenSIPS-Devel] [OpenSIPS/opensips] de2b11: avpops: Fix possible runtime crash

Liviu Chircu liviu at opensips.org
Wed May 27 12:12:21 CEST 2015


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: de2b1138430cad4e5aac71d9ef91707d0f3518b7
      https://github.com/OpenSIPS/opensips/commit/de2b1138430cad4e5aac71d9ef91707d0f3518b7
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-05-27 (Wed, 27 May 2015)

  Changed paths:
    M modules/avpops/avpops.c
    M modules/avpops/avpops_db.c
    M modules/avpops/avpops_db.h

  Log Message:
  -----------
  avpops: Fix possible runtime crash

The patch corrects a bug in commit 685da74670, since mod_init() is
actually run _before_ module function fixups.

Detection for raw SQL function calls is now done (properly) at fixup time,
rather than at module initialization.

Reported by Antonis Psaras
Closes #523

(cherry picked from commit 91d1b4f4b65b4bf70d8db93d956a42d2f58500f9)




More information about the Devel mailing list