diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-22 07:33:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-22 07:33:57 +0000 |
commit | 90e6423c3827e0118adc0ad3d6d6a43950435e74 (patch) | |
tree | 2c5decf6a7fcdba21f57e10d4e2558763934454d | |
parent | ee88d38b4e84149974e05ee57f4089582d0e124b (diff) |
I don't see any specification of how a H221NonStandardIdentifier is
encoded, but let's say it's pure ASCII for now.
svn path=/trunk/; revision=54899
-rw-r--r-- | asn1/t124/t124.cnf | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-t124.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/t124/t124.cnf b/asn1/t124/t124.cnf index 7062ca7ac8..438fd39aef 100644 --- a/asn1/t124/t124.cnf +++ b/asn1/t124/t124.cnf @@ -154,7 +154,7 @@ RegistryAllocateHandleResponse/result AllocateHandleResponseResult if(next_tvb) { - ns = tvb_get_string(NULL, t124NSIdentifier, 0, tvb_length(t124NSIdentifier)); + ns = tvb_get_string_enc(NULL, t124NSIdentifier, 0, tvb_length(t124NSIdentifier), ENC_ASCII|ENC_NA); if(ns != NULL) { dissector_try_string(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree, NULL); g_free(ns); diff --git a/epan/dissectors/packet-t124.c b/epan/dissectors/packet-t124.c index d75e59c273..e6c83516cd 100644 --- a/epan/dissectors/packet-t124.c +++ b/epan/dissectors/packet-t124.c @@ -584,7 +584,7 @@ dissect_t124_T_value(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr if(next_tvb) { - ns = tvb_get_string(NULL, t124NSIdentifier, 0, tvb_length(t124NSIdentifier)); + ns = tvb_get_string_enc(NULL, t124NSIdentifier, 0, tvb_length(t124NSIdentifier), ENC_ASCII|ENC_NA); if(ns != NULL) { dissector_try_string(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree, NULL); g_free(ns); |