aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ses.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-02 05:53:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-02 05:53:26 +0000
commit3a32ec1a37cf681a8c493c7047d4822eee097305 (patch)
tree61fc06b1bb9904c3cc4200e39bfd17c9fb1c56a7 /packet-ses.c
parent4d1cea15f4f60585824819110c26b75cda43c13b (diff)
Don't call the presentation layer dissector if we don't have a handle
for it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9136 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ses.c')
-rw-r--r--packet-ses.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/packet-ses.c b/packet-ses.c
index deede77ff8..dc2d10c1f1 100644
--- a/packet-ses.c
+++ b/packet-ses.c
@@ -2,7 +2,7 @@
*
* Routine to dissect ISO 8327-1 OSI Session Protocol packets
*
-* $Id: packet-ses.c,v 1.3 2003/11/18 07:08:43 guy Exp $
+* $Id: packet-ses.c,v 1.4 2003/12/02 05:53:26 guy Exp $
*
* Yuriy Sidelnikov <YSidelnikov@hotmail.com>
*
@@ -269,24 +269,22 @@ call_pres_dissector(tvbuff_t *tvb, int offset, guint16 param_len,
proto_tree_add_text(param_tree, tvb, offset, param_len,
"User data");
}
- else
- {
- /* Yes - call presentation dissector */
- tvbuff_t *next_tvb;
+ }
+ else
+ {
+ /* Yes - call presentation dissector */
+ tvbuff_t *next_tvb;
- next_tvb = tvb_new_subset(tvb, offset, param_len,
- param_len);
- TRY
- {
- call_dissector(pres_handle, next_tvb, pinfo,
- tree);
- }
- CATCH_ALL
- {
- show_exception(tvb, pinfo, tree, EXCEPT_CODE);
- }
- ENDTRY;
+ next_tvb = tvb_new_subset(tvb, offset, param_len, param_len);
+ TRY
+ {
+ call_dissector(pres_handle, next_tvb, pinfo, tree);
+ }
+ CATCH_ALL
+ {
+ show_exception(tvb, pinfo, tree, EXCEPT_CODE);
}
+ ENDTRY;
}
}