Add a null pointer check. Fixes the current Buildbot menagerie failure.

svn path=/trunk/; revision=17797
This commit is contained in:
Gerald Combs 2006-04-03 14:44:56 +00:00
parent 10a0fd2105
commit 34335a2bc1
1 changed files with 3 additions and 0 deletions

View File

@ -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) {