Don't call the presentation layer dissector if we don't have a handle
for it. svn path=/trunk/; revision=9136
This commit is contained in:
parent
87561392ef
commit
089911a0e4
10
packet-ses.c
10
packet-ses.c
|
@ -2,7 +2,7 @@
|
||||||
*
|
*
|
||||||
* Routine to dissect ISO 8327-1 OSI Session Protocol packets
|
* 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>
|
* Yuriy Sidelnikov <YSidelnikov@hotmail.com>
|
||||||
*
|
*
|
||||||
|
@ -269,17 +269,16 @@ call_pres_dissector(tvbuff_t *tvb, int offset, guint16 param_len,
|
||||||
proto_tree_add_text(param_tree, tvb, offset, param_len,
|
proto_tree_add_text(param_tree, tvb, offset, param_len,
|
||||||
"User data");
|
"User data");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Yes - call presentation dissector */
|
/* Yes - call presentation dissector */
|
||||||
tvbuff_t *next_tvb;
|
tvbuff_t *next_tvb;
|
||||||
|
|
||||||
next_tvb = tvb_new_subset(tvb, offset, param_len,
|
next_tvb = tvb_new_subset(tvb, offset, param_len, param_len);
|
||||||
param_len);
|
|
||||||
TRY
|
TRY
|
||||||
{
|
{
|
||||||
call_dissector(pres_handle, next_tvb, pinfo,
|
call_dissector(pres_handle, next_tvb, pinfo, tree);
|
||||||
tree);
|
|
||||||
}
|
}
|
||||||
CATCH_ALL
|
CATCH_ALL
|
||||||
{
|
{
|
||||||
|
@ -287,7 +286,6 @@ call_pres_dissector(tvbuff_t *tvb, int offset, guint16 param_len,
|
||||||
}
|
}
|
||||||
ENDTRY;
|
ENDTRY;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this routine returns length of parameter field, parameter group,
|
/* this routine returns length of parameter field, parameter group,
|
||||||
|
|
Loading…
Reference in New Issue