diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-03-24 21:52:19 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-03-24 21:52:19 +0000 |
commit | bda771b86bd18f8f5cc5ad9c22df427c17898e7c (patch) | |
tree | 2de4b54d67889b4a4c7295693ab9fb13e1372d0c /epan/dissectors/packet-sgsap.c | |
parent | f3e5fa224c396d5408fba06f6824fd22ea6ce670 (diff) | |
download | wireshark-bda771b86bd18f8f5cc5ad9c22df427c17898e7c.tar.gz |
Do not initialize ett_tree and msg_fcn_p when match_strval_idx_ext does not find a match
svn path=/trunk/; revision=48538
Diffstat (limited to 'epan/dissectors/packet-sgsap.c')
-rw-r--r-- | epan/dissectors/packet-sgsap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sgsap.c b/epan/dissectors/packet-sgsap.c index 9307cb195c..39eb51fcf5 100644 --- a/epan/dissectors/packet-sgsap.c +++ b/epan/dissectors/packet-sgsap.c @@ -1370,9 +1370,11 @@ static void get_sgsap_msg_params(guint8 oct, const gchar **msg_str, int *ett_tre gint idx; *msg_str = match_strval_idx_ext((guint32) (oct & 0xff), &sgsap_msg_strings_ext, &idx); - *ett_tree = ett_sgsap_msg[idx]; *hf_idx = hf_sgsap_msg_type; - *msg_fcn_p = sgsap_msg_fcn[idx]; + if (*msg_str != NULL) { + *ett_tree = ett_sgsap_msg[idx]; + *msg_fcn_p = sgsap_msg_fcn[idx]; + } return; } |