diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-04-03 14:44:56 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-04-03 14:44:56 +0000 |
commit | 34335a2bc186444a8cbb138d528005051e0e20e5 (patch) | |
tree | 10cabd20333ce28af65d0c60a4a2fc96a95b2654 /epan/dissectors/packet-ncp2222.inc | |
parent | 10a0fd2105cb51715baf87235c73c87bffa99c02 (diff) |
Add a null pointer check. Fixes the current Buildbot menagerie failure.
svn path=/trunk/; revision=17797
Diffstat (limited to 'epan/dissectors/packet-ncp2222.inc')
-rw-r--r-- | epan/dissectors/packet-ncp2222.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ncp2222.inc b/epan/dissectors/packet-ncp2222.inc index daa61e6baa..344dc7d4c8 100644 --- a/epan/dissectors/packet-ncp2222.inc +++ b/epan/dissectors/packet-ncp2222.inc @@ -2540,6 +2540,9 @@ build_expert_data(proto_tree *ncp_tree, char *hf_name, char *buffer, int repeat_ static void trap_for_expert_event(proto_tree *ncp_tree, packet_info *pinfo, const ncp_record *ncp_rec, int request_reply) { + if (ncp_rec == NULL) + return; + /* Request == 0, Reply == 1 */ if (request_reply==0) { if (ncp_echo_file) { |