Fixed invalid allocation
This commit is contained in:
@@ -294,9 +294,9 @@ static void ndpi_search_ssh_tcp(struct ndpi_detection_module_struct *ndpi_struct
|
|||||||
} else if(packet->payload_packet_len > 5) {
|
} else if(packet->payload_packet_len > 5) {
|
||||||
u_int8_t msgcode = *(packet->payload + 5);
|
u_int8_t msgcode = *(packet->payload + 5);
|
||||||
ndpi_MD5_CTX ctx;
|
ndpi_MD5_CTX ctx;
|
||||||
|
|
||||||
if(msgcode == 20 /* key exchange init */) {
|
if(msgcode == 20 /* key exchange init */) {
|
||||||
char *hassh_buf = calloc(packet->payload_packet_len, sizeof(char));
|
char *hassh_buf = ndpi_calloc(packet->payload_packet_len, sizeof(char));
|
||||||
u_int i, len;
|
u_int i, len;
|
||||||
|
|
||||||
#ifdef SSH_DEBUG
|
#ifdef SSH_DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user