Ethereal-cvs: [Ethereal-cvs] Rev 12045: /trunk/plugins/asn1/: packet-asn1.c

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

Date: Sun, 19 Sep 2004 03:00:04 -0000
User: guy
Date: 2004/09/18 10:00 PM

Log:
 Preference strings don't remain null pointers for long - they get
 converted to pointers to null strings (see prefs.c for an explanation). 
 Initialize "current_asn1" to a mallocated null string.
 
 That lets us use "strcmp()" to compare asn1_filename and current_asn1. 
 We already do that with asn1_pduname and current_pduname, so use
 "strcmp()" for them as well.
 
 Call "build_pdu_tree()" if we haven't yet built a PDU tree, even if the
 PDU type preference hasn't changed.
 
 Don't register with any of the ports unless we have a PDU tree, so we
 don't try to dissect with a null PDU tree pointer.
 
 Before constructing a PDU tree, if we already have a PDU tree, free it.
 
 When we free data_nodes, free the data attached to the nodes.
 
 Make a bunch of stuff static.

Directory: /trunk/plugins/asn1/
  Changes    Path             Action
  +185 -144  packet-asn1.c    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=12045&view=rev