Ethereal-dev: [Ethereal-dev] [PATCH] IAX2 dissector crash

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Artur Zaprzala <arturzaprzala@xxxxxxxxxxx>
Date: Wed, 26 Jan 2005 01:30:53 +0100
Ethereal 0.10.8 is crashing on `NEW' packets from IAX2 protocol. Attached patch corrects the problem, but I don't know the sources enough to be sure if this patch targets actual bug or only its symptoms.


Artur Zaprzala
--- packet-iax2.c-orig	2004-12-14 20:53:55.000000000 +0100
+++ packet-iax2.c	2005-01-10 00:30:18.619617504 +0100
@@ -1201,7 +1201,8 @@
       /* if this is a data call, set up a subdissector for the circuit */
       dissector_handle_t s;
       s = dissector_get_port_handle(iax2_dataformat_dissector_table, iax_call -> dataformat );
-      circuit_set_dissector( circuit, s );
+      if (s!=NULL)
+	circuit_set_dissector( circuit, s );
     }
     break;