From: Victor Julien Date: Mon, 7 Dec 2015 16:10:40 +0000 (+0100) Subject: tls: suppress warnings on alloc failure X-Git-Tag: suricata-3.0RC2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1786%2Fhead;p=thirdparty%2Fsuricata.git tls: suppress warnings on alloc failure --- diff --git a/src/app-layer-tls-handshake.c b/src/app-layer-tls-handshake.c index ca2e7f491c..530a7c1fb0 100644 --- a/src/app-layer-tls-handshake.c +++ b/src/app-layer-tls-handshake.c @@ -174,7 +174,7 @@ int DecodeTLSHandshakeServerCertificate(SSLState *ssl_state, uint8_t *input, uin int j = 0; if (hash == NULL) { - SCLogWarning(SC_ERR_MEM_ALLOC, "Can not allocate fingerprint string"); + // TODO maybe an event here? } else { for (j = 0; j < hash_len; j++, p += 3) { snprintf(p, 4, j == hash_len - 1 ? "%02x" : "%02x:", hash[j]); @@ -182,7 +182,7 @@ int DecodeTLSHandshakeServerCertificate(SSLState *ssl_state, uint8_t *input, uin SCFree(hash); ssl_state->server_connp.cert0_fingerprint = SCStrdup(out); if (ssl_state->server_connp.cert0_fingerprint == NULL) { - SCLogWarning(SC_ERR_MEM_ALLOC, "Can not allocate fingerprint string"); + // TODO do we need an event here? } }