From Peter Johansson: Make sure a pointer isn't NULL before we try to use it.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 18 Apr 2005 18:57:37 +0000 (18:57 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 18 Apr 2005 18:57:37 +0000 (18:57 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14129 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-smb-mailslot.c

index 1fe72fc44e18032845f3fd712510476ba2700a27..3dc01cb5828f9e0e59fa600d0ca88cbbf14bc811 100644 (file)
@@ -116,7 +116,7 @@ dissect_mailslot_smb(tvbuff_t *mshdr_tvb, tvbuff_t *setup_tvb,
        }
 
        smb_info = pinfo->private_data;
-       if (smb_info->sip != NULL && smb_info->sip->extra_info_type == SMB_EI_TRI)
+       if (smb_info != NULL && smb_info->sip != NULL && smb_info->sip->extra_info_type == SMB_EI_TRI)
                tri = smb_info->sip->extra_info;
        else
                tri = NULL;