Prechádzať zdrojové kódy

ims_registrar_scscf: fixed bug caused by uninitialized global variable

- "rerrno" variable was not initialized and caused corruption in transaction states
Carlos Ruiz Diaz 12 rokov pred
rodič
commit
3bc87f139b
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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");