]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tls: suppress warnings on alloc failure 1786/head
authorVictor Julien <victor@inliniac.net>
Mon, 7 Dec 2015 16:10:40 +0000 (17:10 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Dec 2015 16:10:40 +0000 (17:10 +0100)
src/app-layer-tls-handshake.c

index ca2e7f491c8428f52621220b0517237f55d7d9ac..530a7c1fb04d2c3293f45179b4bd4ed3c626920e 100644 (file)
@@ -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?
                     }
                 }