aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-04-14 03:41:31 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-04-14 03:41:31 +0000
commit7061524f7930c3aa526932fb2a3f9a87085c0408 (patch)
treead83cea43d513cf34abfe7de52d74c39a7169fb8 /epan
parent41e0f63cfb9016a34eca9581d2e5aea6af984608 (diff)
fix bug in parsing of NDMP_DATA_CONNECT messages, it is a ndmp_address passed to this function not an ndmp_address_type.
svn path=/trunk/; revision=14071
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ndmp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c
index 98ef22ec5e..9af4094500 100644
--- a/epan/dissectors/packet-ndmp.c
+++ b/epan/dissectors/packet-ndmp.c
@@ -1649,6 +1649,15 @@ dissect_ndmp_addr(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
}
static int
+dissect_data_connect_msg(tvbuff_t *tvb, int offset, packet_info *pinfo,
+ proto_tree *tree, guint32 seq _U_)
+{
+ /* ndmp addr */
+ offset=dissect_ndmp_addr(tvb, offset, pinfo, tree);
+}
+
+
+static int
dissect_mover_get_state_reply(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, guint32 seq)
{
@@ -2581,7 +2590,7 @@ static const ndmp_command ndmp_commands[] = {
{NDMP_DATA_LISTEN,
dissect_ndmp_addr_msg, dissect_mover_listen_reply},
{NDMP_DATA_CONNECT,
- dissect_ndmp_addr_msg, dissect_error},
+ dissect_data_connect_msg, dissect_error},
{NDMP_NOTIFY_DATA_HALTED,
dissect_notify_data_halted_request, NULL},
{NDMP_NOTIFY_CONNECTED,