From 6a729e019014e83f261c9e8cccbd527d527d96f4 Mon Sep 17 00:00:00 2001 From: sahlberg Date: Fri, 30 Jun 2006 07:51:52 +0000 Subject: from aaron christensen fix dissection of get_auth_attr git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18619 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ndmp.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'epan/dissectors') diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c index 668b080596..98ed0a26e3 100644 --- a/epan/dissectors/packet-ndmp.c +++ b/epan/dissectors/packet-ndmp.c @@ -653,6 +653,19 @@ dissect_auth_attr_msg(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, return offset; } +static int +dissect_ndmp_config_get_auth_attr_reply(tvbuff_t *tvb, int offset, + packet_info *pinfo, proto_tree *tree, guint32 seq) +{ + /* error */ + offset = dissect_error(tvb, offset, pinfo, tree, seq); + + /* auth_attr */ + offset = dissect_auth_attr_msg(tvb, offset, pinfo, tree, seq); + + return offset; +} + static int dissect_default_env(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree) @@ -2632,7 +2645,7 @@ static const ndmp_command ndmp_commands[] = { {NDMP_CONFIG_GET_CONNECTION_TYPE, NULL, dissect_ndmp_config_get_connection_type_reply}, {NDMP_CONFIG_GET_AUTH_ATTR, - dissect_get_auth_type_request, dissect_auth_attr_msg}, + dissect_get_auth_type_request, dissect_ndmp_config_get_auth_attr_reply}, {NDMP_CONFIG_GET_BUTYPE_INFO, NULL, dissect_get_butype_info_reply}, {NDMP_CONFIG_GET_FS_INFO, -- cgit v1.2.3