From 730c8d68793e3c9e1ea84b078a7674e68aa5ae2c Mon Sep 17 00:00:00 2001 From: Campus Date: Fri, 16 Sep 2016 02:19:20 +0200 Subject: fix wrong comment rsync - deleted old tds dissector --- src/lib/protocols/rsync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/protocols/rsync.c') diff --git a/src/lib/protocols/rsync.c b/src/lib/protocols/rsync.c index 11f4aa89c..2b85da72b 100644 --- a/src/lib/protocols/rsync.c +++ b/src/lib/protocols/rsync.c @@ -2,6 +2,7 @@ * rsync.c * * Copyright (C) 2013 Remy Mudingay + * Copyright (C) 2016 ntop.org * * This module is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -21,7 +22,6 @@ #include "ndpi_api.h" - #ifdef NDPI_PROTOCOL_RSYNC static void ndpi_int_rsync_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) @@ -35,10 +35,10 @@ void ndpi_search_rsync(struct ndpi_detection_module_struct *ndpi_struct, struct NDPI_LOG(NDPI_PROTOCOL_RSYNC, ndpi_struct, NDPI_LOG_DEBUG, "search for RSYNC.\n"); - if(packet->tcp != NULL) { + if(packet->tcp) { NDPI_LOG(NDPI_PROTOCOL_RSYNC, ndpi_struct, NDPI_LOG_DEBUG, "calculating RSYNC over tcp.\n"); /* - * Should match: memcmp(packet->payload, "@RSYN NCD: 28", 14) == 0) + * Should match: memcmp(packet->payload, "@RSYNCD: 28", 14) == 0) */ if (packet->payload_packet_len == 12 && packet->payload[0] == 0x40 && packet->payload[1] == 0x52 && packet->payload[2] == 0x53 && -- cgit v1.2.3