Warning fix

This commit is contained in:
Luca Deri
2020-08-22 16:41:42 +02:00
parent 519ba7a9d5
commit 93003d0523
+2 -6
View File
@@ -16,10 +16,6 @@
* You should have received a copy of the GNU Lesser General Public License. * You should have received a copy of the GNU Lesser General Public License.
* If not, see <http://www.gnu.org/licenses/>. * If not, see <http://www.gnu.org/licenses/>.
* *
* Based on code of:
* Andrea Buscarinu - <andrea.buscarinu@gmail.com>
* Michele Campus - <campus@ntop.org>
*
*/ */
#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ #if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
@@ -44,7 +40,7 @@
* https://docs.google.com/document/d/1FcpCJGTDEMblAs-Bm5TYuqhHyUqeWpqrItw2vkMFsdY/edit * https://docs.google.com/document/d/1FcpCJGTDEMblAs-Bm5TYuqhHyUqeWpqrItw2vkMFsdY/edit
* https://tools.ietf.org/html/draft-ietf-quic-tls-29 * https://tools.ietf.org/html/draft-ietf-quic-tls-29
* https://tools.ietf.org/html/draft-ietf-quic-transport-29 * https://tools.ietf.org/html/draft-ietf-quic-transport-29
*/ */
extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow, int is_quic); struct ndpi_flow_struct *flow, int is_quic);
@@ -930,7 +926,7 @@ static const uint8_t *get_crypto_data(struct ndpi_detection_module_struct *ndpi_
if(*crypto_data_len + counter > clear_payload_len) { if(*crypto_data_len + counter > clear_payload_len) {
NDPI_LOG_ERR(ndpi_struct, "Invalid length %lu + %d > %d version 0x%x\n", NDPI_LOG_ERR(ndpi_struct, "Invalid length %lu + %d > %d version 0x%x\n",
*crypto_data_len, counter, clear_payload_len, version); (unsigned long)*crypto_data_len, counter, clear_payload_len, version);
return NULL; return NULL;
} }
return crypto_data; return crypto_data;