diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-04-18 02:48:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-04-18 02:48:31 +0000 |
commit | 23738d70f0d6244dc4344df73459067a68830940 (patch) | |
tree | c80dffdd17b24034897dee48199e95b025a18da0 | |
parent | 76f7e225aeb6241a1747ca233fdee6058593f976 (diff) |
Make sure a pointer isn't null before we dereference it.
svn path=/trunk/; revision=14121
-rw-r--r-- | plugins/mgcp/packet-mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c index cf51928dc9..2861831534 100644 --- a/plugins/mgcp/packet-mgcp.c +++ b/plugins/mgcp/packet-mgcp.c @@ -1553,7 +1553,7 @@ static void dissect_mgcp_params(tvbuff_t *tvb, proto_tree *tree){ tvb_tokenbegin = tvb_parse_param(tvb, tvb_linebegin, linelen, &my_param); - if (*my_param == hf_mgcp_param_connectionparam) { + if (my_param && *my_param == hf_mgcp_param_connectionparam) { tokenlen = tvb_find_line_end(tvb,tvb_tokenbegin,-1,&tvb_lineend,FALSE); dissect_mgcp_connectionparams(mgcp_param_tree, tvb, tvb_linebegin, tvb_tokenbegin - tvb_linebegin, tokenlen); } else { |