Explorar o código

modules/ims_usrloc_scscf: don't call db function if in NO_DB mode - prevents crash

jaybeepee %!s(int64=9) %!d(string=hai) anos
pai
achega
e65e84caa0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/ims_usrloc_scscf/impurecord.c

+ 1 - 1
modules/ims_usrloc_scscf/impurecord.c

@@ -481,7 +481,7 @@ static inline void process_impurecord(impurecord_t* _r) {
         }
     }
     
-    if (dbwork) {
+    if (dbwork && db_mode != NO_DB) {
         if (ul_dbf.raw_query(ul_dbh, &commit, NULL) < 0) {
             LM_ERR("transaction commit "
                     "failed.\n");