summaryrefslogtreecommitdiff
path: root/packet-nt-sonmp.c
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2003-12-06 19:26:04 +0000
committerOlivier Abad <oabad@noos.fr>2003-12-06 19:26:04 +0000
commitd9dec105d65bf420f86c7242415a0a0ad885e0a2 (patch)
treee7de60b64856a0a79b53f45b41914c0a99ddfece /packet-nt-sonmp.c
parente1d6501129990ac35c5cb8e71c1997ee8d3ca58f (diff)
downloadwireshark-d9dec105d65bf420f86c7242415a0a0ad885e0a2.tar.gz
Check if pinfo->dl_dst.data is not NULL before accessing the data (it
was NULL in one of my "linux cooked" captures which contains no destination address). svn path=/trunk/; revision=9184
Diffstat (limited to 'packet-nt-sonmp.c')
-rw-r--r--packet-nt-sonmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-nt-sonmp.c b/packet-nt-sonmp.c
index 7a5876506a..243b758626 100644
--- a/packet-nt-sonmp.c
+++ b/packet-nt-sonmp.c
@@ -2,7 +2,7 @@
* Routines for the disassembly of the "Nortel Networks / SynOptics Network Management Protocol"
* (c) Copyright Giles Scott <gscott2@nortelnetworks.com>
*
-* $Id: packet-nt-sonmp.c,v 1.2 2003/09/30 20:51:19 guy Exp $
+* $Id: packet-nt-sonmp.c,v 1.3 2003/12/06 19:26:04 oabad Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -222,6 +222,7 @@ dissect_sonmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->cinfo, COL_INFO))
col_add_fstr(pinfo->cinfo, COL_INFO, "SONMP - %s Hello",
+ pinfo->dl_dst.data == NULL ? "" :
pinfo->dl_dst.data[5] == 0 ? "Segment" :
pinfo->dl_dst.data[5] == 1 ? "FlatNet" : "");