diff options
Diffstat (limited to 'epan/dissectors/asn1/dap/dap.cnf')
-rw-r--r-- | epan/dissectors/asn1/dap/dap.cnf | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/asn1/dap/dap.cnf b/epan/dissectors/asn1/dap/dap.cnf index c20d57af02..d4e7a98e75 100644 --- a/epan/dissectors/asn1/dap/dap.cnf +++ b/epan/dissectors/asn1/dap/dap.cnf @@ -290,13 +290,9 @@ OPERATION.&ResultType %(DEFAULT_BODY)s if(out_tvb) { - len = tvb_reported_length(out_tvb); /* now see if we can add a string representation */ - for(i=0; i<len; i++) - if(!g_ascii_isprint(tvb_get_guint8(out_tvb, i))) - break; - - if(i == len) { + len = tvb_reported_length(out_tvb); + if(tvb_ascii_isprint(out_tvb, 0, len)) { if(actx->created_item) { proto_item_append_text(actx->created_item," ("); |