瀏覽代碼

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 年之前
父節點
當前提交
3bc87f139b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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");