Explorar o código

ims_registrar_scscf: fixed bug caused by uninitialized global variable

- "rerrno" variable was not initialized and caused corruption in transaction states
Carlos Ruiz Diaz %!s(int64=12) %!d(string=hai) anos
pai
achega
3bc87f139b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/ims_registrar_scscf/cxdx_sar.c

+ 1 - 0
modules/ims_registrar_scscf/cxdx_sar.c

@@ -101,6 +101,7 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *saa, long elaps
 
     str xml_data = {0, 0}, ccf1 = {0, 0}, ccf2 = {0, 0}, ecf1 = {0, 0}, ecf2 = {0, 0};
     ims_subscription* s = 0;
+    rerrno = R_FINE;
 
     if (!param) {
         LM_DBG("No transaction data this must have been called from usrloc cb impu deleted - just log result code and then exit");