Fix undefined shift in dns

This commit is contained in:
Philippe Antoine
2020-01-31 14:50:18 +01:00
parent 39b1ad3087
commit b5b2260f2e
+1 -1
View File
@@ -282,7 +282,7 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st
u_int32_t shift;
c = flow->packet.payload[off++];
shift = 1 << (c & 0x1f);
shift = ((u_int32_t) 1) << (c & 0x1f);
flow->host_server_name[j++] = tolower((dns_validchar[c >> 5] & shift) ? c : '_');
cl--;
}