Fixed msys2 build warnings and re-activated CI Mingw64 build.

* Removed Visual Studio leftovers. Maintaining an autotools project with VS integration requires some additional overhead.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-04-14 19:17:48 +02:00
committed by lns
parent 4775be3d85
commit c3df3a12aa
39 changed files with 469 additions and 742 deletions
+13 -1
View File
@@ -99,7 +99,19 @@ static int search_telnet_again(struct ndpi_detection_module_struct *ndpi_struct,
for(i=0; i<packet->payload_packet_len; i++) {
if(packet->packet_direction == 0) /* client -> server */ {
if(flow->protos.telnet.character_id < (sizeof(flow->protos.telnet.username)-1))
flow->protos.telnet.username[flow->protos.telnet.character_id++] = packet->payload[i];
{
if (i>=packet->payload_packet_len-2 &&
(packet->payload[i] == '\r' || packet->payload[i] == '\n'))
{
continue;
}
else if (ndpi_isprint(packet->payload[i]) == 0)
{
flow->protos.telnet.username[flow->protos.telnet.character_id++] = '?';
} else {
flow->protos.telnet.username[flow->protos.telnet.character_id++] = packet->payload[i];
}
}
}
}