aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ldap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-08 19:50:29 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-08 19:50:29 +0000
commit986202892907925e736c3b426deca7c428b47885 (patch)
tree54ce1e23e5b04a3c4e354e0b112c72a32702fa3a /packet-ldap.c
parent2b5bf3b6dca6412e311c0166955b463032bc26a6 (diff)
Only set the Info column to an error indication if we haven't already
put a packet description there. svn path=/trunk/; revision=3405
Diffstat (limited to 'packet-ldap.c')
-rw-r--r--packet-ldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ldap.c b/packet-ldap.c
index 7b18a9579a..f592fd91c9 100644
--- a/packet-ldap.c
+++ b/packet-ldap.c
@@ -1,7 +1,7 @@
/* packet-ldap.c
* Routines for ldap packet dissection
*
- * $Id: packet-ldap.c,v 1.25 2001/05/08 19:46:30 guy Exp $
+ * $Id: packet-ldap.c,v 1.26 2001/05/08 19:50:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -908,7 +908,7 @@ dissect_ldap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
message_start = a.offset;
if (read_sequence(&a, &messageLength))
{
- if (check_col(pinfo->fd, COL_INFO))
+ if (first_time && check_col(pinfo->fd, COL_INFO))
col_set_str(pinfo->fd, COL_INFO, "Invalid LDAP packet");
if (ldap_tree)
proto_tree_add_text(ldap_tree, tvb, offset, 1, "Invalid LDAP packet");
@@ -918,7 +918,7 @@ dissect_ldap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
message_id_start = a.offset;
if (read_integer(&a, 0, -1, 0, &messageId, ASN1_INT))
{
- if (check_col(pinfo->fd, COL_INFO))
+ if (first_time && check_col(pinfo->fd, COL_INFO))
col_set_str(pinfo->fd, COL_INFO, "Invalid LDAP packet (No Message ID)");
if (ldap_tree)
proto_tree_add_text(ldap_tree, tvb, message_id_start, 1,