Minor fix
This commit is contained in:
@@ -50,7 +50,7 @@ static int is_stop_char(u_char c) {
|
||||
/* ****************************************************************** */
|
||||
|
||||
/* The function below has been inherited by tcpdump */
|
||||
int ndpi_netbios_name_interpret(u_char *in, size_t in_len, u_char *out, u_int out_len) {
|
||||
int ndpi_netbios_name_interpret(u_char *in, u_int in_len, u_char *out, u_int out_len) {
|
||||
u_int ret = 0, len, idx = in_len, out_idx = 0;
|
||||
|
||||
len = in[0] / 2;
|
||||
@@ -99,7 +99,7 @@ static void ndpi_int_netbios_add_connection(struct ndpi_detection_module_struct
|
||||
|
||||
if((off < flow->packet.payload_packet_len)
|
||||
&& ndpi_netbios_name_interpret((unsigned char*)&flow->packet.payload[off],
|
||||
flow->packet.payload_packet_len - off, name, sizeof(name)-1) > 0) {
|
||||
(u_int)(flow->packet.payload_packet_len - off), name, sizeof(name)-1) > 0) {
|
||||
snprintf((char*)flow->host_server_name, sizeof(flow->host_server_name)-1, "%s", name);
|
||||
|
||||
ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name, 1);
|
||||
|
||||
Reference in New Issue
Block a user