diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-08-15 19:35:09 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-08-15 19:35:09 +0000 |
commit | a8a4c251f082b17f6e818981e52e1a86d98e5b94 (patch) | |
tree | a1ccfcbb6c50c1fedb7ea9a20f933a4e2625dd82 /epan | |
parent | 27245a1d1fda1b25aa700255a8dd7d627986bb98 (diff) |
TP-PI (TP-Parameter-Indicator) is optional.
svn path=/trunk/; revision=15360
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-gsm_sms.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c index 266dbe43c6..e10e53b42e 100644 --- a/epan/dissectors/packet-gsm_sms.c +++ b/epan/dissectors/packet-gsm_sms.c @@ -2351,6 +2351,15 @@ dis_msg_status_report(tvbuff_t *tvb, proto_tree *tree, guint32 offset) dis_field_st(tvb, tree, offset, oct); offset++; + /* Parameter indicating the presence of any of + * the optional parameters which follow + * 4) Mandatory if any of the optional parameters following TP-PI is present, + * otherwise optional. + */ + if (length <= (offset - saved_offset)) + { + return; + } pi = tvb_get_guint8(tvb, offset); dis_field_pi(tvb, tree, offset, pi); |