"ssn_range" needs to be a copy of "global_ssn_range", so that it's not
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 17 Oct 2004 00:48:37 +0000 (00:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 17 Oct 2004 00:48:37 +0000 (00:48 +0000)
freed if "global_ssn_range" is changed because the preference was
changed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12321 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-tcap.c

index 1938a38ce31915e055ef15c3f7d4c384b2ff27b6..00e6c962165b4f3b0cd1acc075bb60ea7409efe0 100644 (file)
@@ -2917,7 +2917,7 @@ proto_reg_handoff_tcap(void)
     }
 
     g_free(ssn_range);
-    ssn_range = global_ssn_range;
+    ssn_range = range_copy(global_ssn_range);
 
     range_foreach(ssn_range, range_add_callback);