Ethereal-dev: Re: [Ethereal-dev] [PATCH] fix for bug 742

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

From: Paolo Abeni <00918190@xxxxxxxxx>
Date: Thu, 16 Feb 2006 09:52:50 +0100
On Thu, 2006-02-16 at 00:27 +0100, Joerg Mayer wrote: 
> ...
> > Index: epan/dissectors/packet-x509af.c
> 
> Please read the first line of this file and fix the problem accordingly
> :-)


oops... in Italy we say "haste is an evil advisor"...

The attached patch should works...

Paolo


Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to 
MailAdmin@xxxxxxxxx. Thank you
====================================================================
Index: asn1/x509af/x509af.cnf
===================================================================
--- asn1/x509af/x509af.cnf	(revision 17315)
+++ asn1/x509af/x509af.cnf	(working copy)
@@ -112,6 +112,7 @@
 
   %(DEFAULT_BODY)s
 
-  proto_item_append_text(proto_item_get_parent(tree), " (%%s)", x509if_get_last_dn());
+  const char* str = x509if_get_last_dn();
+  proto_item_append_text(proto_item_get_parent(tree), " (%%s)", str?str:"");
 
 #.END