ソースを参照

ims_usrloc_pcscf: Update comment for free_security()

Tsvetomir Dimitrov 7 年 前
コミット
18f7771a8c
1 ファイル変更8 行追加2 行削除
  1. 8 2
      src/modules/ims_usrloc_pcscf/pcontact.c

+ 8 - 2
src/modules/ims_usrloc_pcscf/pcontact.c

@@ -112,6 +112,11 @@ void free_ppublic(ppublic_t* _p)
 	shm_free(_p);
 }
 
+
+// The same piece of code also lives in modules/ims_registrar_pcscf/sec_agree.c
+// Function - parse_sec_agree()
+// goto label - cleanup
+// Keep them in sync!
 void free_security(security_t* _p)
 {
     if (!_p)
@@ -137,8 +142,9 @@ void free_security(security_t* _p)
         case SECURITY_TLS:
             shm_free(_p->data.tls);
         break;
-
-        default: // Nothing to deallocate
+        
+        case SECURITY_NONE:
+            //Nothing to deallocate
         break;
     }