From 3b897c9a32aa4cb09f168eb54ba8ed8af475ead9 Mon Sep 17 00:00:00 2001 From: tpot Date: Wed, 27 Feb 2002 02:42:19 +0000 Subject: [PATCH] Display a different message in the COL_INFO field for anonymous session setup packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4818 f5534014-38df-0310-8fa8-9805f1628bb7 --- packet-smb.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packet-smb.c b/packet-smb.c index 72b51b8874..653a7ac269 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe * 2001 Rewrite by Ronnie Sahlberg and Guy Harris * - * $Id: packet-smb.c,v 1.212 2002/02/22 21:29:02 tpot Exp $ + * $Id: packet-smb.c,v 1.213 2002/02/27 02:42:19 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -5312,8 +5312,14 @@ dissect_session_setup_andx_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree COUNT_BYTES(dn_len); if (check_col(pinfo->cinfo, COL_INFO)) { - col_append_fstr(pinfo->cinfo, COL_INFO, ", User: %s@%s", - an,dn); + col_append_fstr(pinfo->cinfo, COL_INFO, ", User: "); + + if (!dn[0] && !an[0]) + col_append_fstr(pinfo->cinfo, COL_INFO, + "anonymous"); + else + col_append_fstr(pinfo->cinfo, COL_INFO, + "%s\\%s", dn,an); } /* OS */ -- 2.34.1