[OpenSIPS-Devel] [OpenSIPS/opensips] 685da7: avpops: Proper validation for DB_CAP_RAW_QUERY cap...

Liviu Chircu liviu at opensips.org
Tue Mar 3 16:20:42 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 685da746705087edd0d4d59e2abafde4440b75c7
      https://github.com/OpenSIPS/opensips/commit/685da746705087edd0d4d59e2abafde4440b75c7
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-03-03 (Tue, 03 Mar 2015)

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

  Log Message:
  -----------
  avpops: Proper validation for DB_CAP_RAW_QUERY capability

Prevent OpenSIPS from starting if avp_db_query() is used and the concerned
DB engine does not support raw SQL queries. This prevents runtime
crashes in some rare cases (e.g. issues with db_http module, which might
not have full support)

Fixes #405

(cherry picked from commit 8d978ac4530ebf95925efc44cb11d0a549e20a52)




More information about the Devel mailing list