diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-23 21:38:36 +0200 |
---|---|---|
committer | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-23 21:38:36 +0200 |
commit | a2843084d683b119c25ab866426f8d5712c03a8a (patch) | |
tree | 0a14827e514ea3682067fc92b25a47a929853207 /src/lib/protocols/quic.c | |
parent | ef2cb860a34b8abae5f5070832c1c63924744393 (diff) | |
parent | 3d23ee0e23cbdd7dd3d3f94705916446b989cbc2 (diff) |
Merge pull request #200 from alagoutte/typo
Fix some typo
Diffstat (limited to 'src/lib/protocols/quic.c')
-rw-r--r-- | src/lib/protocols/quic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index c26b8990c..ac443951b 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -65,7 +65,7 @@ static int quic_len(u_int8_t l) { return(8); break; } - + return(0); /* NOTREACHED */ } @@ -90,13 +90,13 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, int i; if((version_len > 0) && (packet->payload[1+cid_len] != 'Q')) - goto no_quic; + goto no_quic; NDPI_LOG(NDPI_PROTOCOL_QUIC, ndpi_struct, NDPI_LOG_DEBUG, "found QUIC.\n"); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_QUIC, NDPI_PROTOCOL_UNKNOWN); if(!strncmp((char*)&packet->payload[quic_hlen+17], "CHLO" /* Client Hello */, 4)) { - /* Check if SNI (Server Name Indetification) is present */ + /* Check if SNI (Server Name Identification) is present */ for(i=quic_hlen+12; i<udp_len-3; i++) { if((packet->payload[i] == 'S') && (packet->payload[i+1] == 'N') @@ -106,10 +106,10 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t prev_offset = *((u_int32_t*)&packet->payload[i-4]); int len = offset-prev_offset; int sni_offset = i+prev_offset+1; - + while((packet->payload[sni_offset] == '-') && (sni_offset < udp_len)) sni_offset++; - + if((sni_offset+len) < udp_len) { int max_len = sizeof(flow->host_server_name)-1, j = 0; |