From 991d9b42461136ab1f615eda0e642f7ae9cd56e5 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 15 Nov 2007 09:41:32 +0000 Subject: branch_taken that is returned by dissect_ber_choice() is the index of of the branch and not the tag value so one cant use it with val_to_str() (well one can in this instance since by luck the tag values match the indices) svn path=/trunk/; revision=23452 --- asn1/mms/mms.cnf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'asn1/mms') diff --git a/asn1/mms/mms.cnf b/asn1/mms/mms.cnf index 308f9f3f17..8647ccbcaf 100644 --- a/asn1/mms/mms.cnf +++ b/asn1/mms/mms.cnf @@ -36,7 +36,8 @@ MMSpdu %(DEFAULT_BODY)s - if(check_col(actx->pinfo->cinfo, COL_INFO)) - col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%%s ", val_to_str(branch_taken, mms_MMSpdu_vals, "Unknown")); - + if( (branch_taken!=-1) && mms_MMSpdu_vals[branch_taken].strptr ){ + if(check_col(actx->pinfo->cinfo, COL_INFO)) + col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%%s ", mms_MMSpdu_vals[branch_taken].strptr); + } -- cgit v1.2.1