From 13f96a2c89c6d9937e624350025de401f93cc9cf Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 18 Sep 2023 09:14:29 +1200 Subject: [PATCH] =?UTF-8?q?hx509:=20Don=E2=80=99t=20pass=20excess=20argume?= =?UTF-8?q?nts=20to=20variadic=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by Coverity (Samba CID 1544609). Signed-off-by: Joseph Sutton --- lib/hx509/ca.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/hx509/ca.c b/lib/hx509/ca.c index 1ca8d51da..d357710a6 100644 --- a/lib/hx509/ca.c +++ b/lib/hx509/ca.c @@ -1187,8 +1187,7 @@ hx509_ca_tbs_add_san_permanentIdentifier_string(hx509_context context, p = strchr(freeme, ':'); if (!p) { hx509_set_error_string(context, 0, EINVAL, - "Invalid PermanentIdentifier string (should be \"[]:[]\")", - oidstr); + "Invalid PermanentIdentifier string (should be \"[]:[]\")"); free(freeme); return EINVAL; } @@ -1297,8 +1296,7 @@ hx509_ca_tbs_add_san_hardwareModuleName_string(hx509_context context, if (!p) { hx509_set_error_string(context, 0, EINVAL, "Invalid HardwareModuleName string (should be " - "\":\")", - oidstr); + "\":\")"); free(freeme); return EINVAL; }