summaryrefslogtreecommitdiffstats
path: root/ldap/servers
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-07-02 10:04:48 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-23 13:09:13 -0700
commit92d7458355c775ddd62bb82c58cffe2472ee5ff9 (patch)
tree06a045e06ed1978d3b46c69af6aa9a9aa5d74013 /ldap/servers
parent889e07426f879ee8c999692a298f48221805ec06 (diff)
downloadds-92d7458355c775ddd62bb82c58cffe2472ee5ff9.tar.gz
ds-92d7458355c775ddd62bb82c58cffe2472ee5ff9.tar.xz
ds-92d7458355c775ddd62bb82c58cffe2472ee5ff9.zip
610281 - fix coverity Defect Type: Control flow issues
https://bugzilla.redhat.com/show_bug.cgi?id=610281 11794 DEADCODE Triaged Unassigned Bug Minor Ignore slapi_dn_syntax_check() ds/ldap/servers/slapd/plugin_syntax.c Comment: Checking for the possibility of dn == NULL is not needed since it is already checked at the line 303.
Diffstat (limited to 'ldap/servers')
-rw-r--r--ldap/servers/slapd/plugin_syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/plugin_syntax.c b/ldap/servers/slapd/plugin_syntax.c
index 5018326e..174b136f 100644
--- a/ldap/servers/slapd/plugin_syntax.c
+++ b/ldap/servers/slapd/plugin_syntax.c
@@ -319,7 +319,7 @@ slapi_dn_syntax_check(
if (dn_plugin->plg_syntax_validate(&dn_bval) != 0) {
if (syntaxlogging) {
slapi_log_error( SLAPI_LOG_FATAL, "Syntax Check",
- "DN value (%s) invalid per syntax\n", dn ? dn : "");
+ "DN value (%s) invalid per syntax\n", dn);
}
if (syntaxcheck || override) {