From 8c03b1dbcdf75ba76b96ccfcc148afe0e134e2d3 Mon Sep 17 00:00:00 2001 From: Krzysztof Klimonda Date: Tue, 3 Sep 2013 00:12:26 +0300 Subject: Fix -Wformat-security warnings --- daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop') diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c index 1058c313d..c3e0ebd9d 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c @@ -573,7 +573,7 @@ free_and_return: if (targetEntry) slapi_entry_free(targetEntry); if (ber) ber_free(ber, 1); - LOG(errMesg ? errMesg : "success"); + LOG("%s", errMesg ? errMesg : "success"); slapi_send_ldap_result(pb, rc, NULL, errMesg, 0, NULL); return SLAPI_PLUGIN_EXTENDED_SENT_RESULT; @@ -1143,7 +1143,7 @@ free_and_return: if (rc == LDAP_SUCCESS) errMesg = NULL; - LOG(errMesg ? errMesg : "success"); + LOG("%s", errMesg ? errMesg : "success"); slapi_send_ldap_result(pb, rc, NULL, errMesg, 0, NULL); return SLAPI_PLUGIN_EXTENDED_SENT_RESULT; @@ -1170,7 +1170,7 @@ static int ipapwd_extop(Slapi_PBlock *pb) if (slapi_pblock_get(pb, SLAPI_EXT_OP_REQ_OID, &oid) != 0) { errMesg = "Could not get OID value from request.\n"; rc = LDAP_OPERATIONS_ERROR; - LOG(errMesg); + LOG("%s", errMesg); goto free_and_return; } else { LOG("Received extended operation request with OID %s\n", oid); @@ -1193,7 +1193,7 @@ static int ipapwd_extop(Slapi_PBlock *pb) free_and_return: if (krbcfg) free_ipapwd_krbcfg(&krbcfg); - LOG(errMesg); + LOG("%s", errMesg); slapi_send_ldap_result(pb, rc, NULL, errMesg, 0, NULL); return SLAPI_PLUGIN_EXTENDED_SENT_RESULT; -- cgit