]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Make format string a string literal in some debug statements
authorThomas Egerer <thomas.egerer@secunet.com>
Thu, 20 Oct 2022 16:10:29 +0000 (16:10 +0000)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Dec 2022 16:33:37 +0000 (17:33 +0100)
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/charon-tkm/src/ehandler/eh_callbacks.c
src/libcharon/plugins/vici/vici_socket.c

index a853c2d79ec7e3b2b80011063c6752098d030eae..0e1f1f9ba56439e7487f64a966685cb98c313628 100644 (file)
@@ -24,6 +24,6 @@
 void charon_terminate(char *msg)
 {
        DBG1(DBG_DMN, "critical TKM error, terminating!");
-       DBG1(DBG_DMN, msg);
+       DBG1(DBG_DMN, "%s", msg);
        kill(0, SIGTERM);
 }
index 33747af257841c02c46edc0c5b1338443b172467..21bdead142886370953f300bda9ccc495b10f3a4 100644 (file)
@@ -401,7 +401,7 @@ CALLBACK(on_write, bool,
 
                if (!ret && errmsg[0])
                {
-                       DBG1(DBG_CFG, errmsg);
+                       DBG1(DBG_CFG, "%s", errmsg);
                }
        }
 
@@ -557,7 +557,7 @@ CALLBACK(on_read, bool,
 
                if (!ret && errmsg[0])
                {
-                       DBG1(DBG_CFG, errmsg);
+                       DBG1(DBG_CFG, "%s", errmsg);
                }
        }
 
@@ -674,7 +674,7 @@ CALLBACK(flush_messages, void,
 
        if (!ret && errmsg[0])
        {
-               DBG1(DBG_CFG, errmsg);
+               DBG1(DBG_CFG, "%s", errmsg);
        }
 }