]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
applayer/frame: remove output from GetFrame funcs
authorJuliana Fajardini <jufajardini@gmail.com>
Thu, 24 Feb 2022 16:04:36 +0000 (16:04 +0000)
committerVictor Julien <vjulien@oisf.net>
Fri, 4 Mar 2022 15:50:52 +0000 (16:50 +0100)
As these functions can be probed, having output there results in
misleading output.

src/app-layer-htp.c
src/app-layer-ssl.c

index 910121bd8d8420633362800cd5239abccd2a06c0..315d267df898d7877d92005e3a8e32c3c4356624 100644 (file)
@@ -194,7 +194,6 @@ static int HTTPGetFrameIdByName(const char *frame_name)
 {
     int id = SCMapEnumNameToValue(frame_name, http_frame_table);
     if (id < 0) {
-        SCLogError(SC_ERR_INVALID_ENUM_MAP, "unknown frame type \"%s\"", frame_name);
         return -1;
     }
     return id;
index 73700f1af6f1db526ed628f35fed012f9502d5df..30ad2f78562803edefa755785876823c652fc854 100644 (file)
@@ -2769,7 +2769,6 @@ static int SSLStateGetFrameIdByName(const char *frame_name)
 {
     int id = SCMapEnumNameToValue(frame_name, tls_frame_table);
     if (id < 0) {
-        SCLogError(SC_ERR_INVALID_ENUM_MAP, "unknown frame type \"%s\"", frame_name);
         return -1;
     }
     return id;