diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2010-07-02 10:04:48 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-07-23 13:09:13 -0700 |
commit | 92d7458355c775ddd62bb82c58cffe2472ee5ff9 (patch) | |
tree | 06a045e06ed1978d3b46c69af6aa9a9aa5d74013 /ldap/servers/slapd/plugin_syntax.c | |
parent | 889e07426f879ee8c999692a298f48221805ec06 (diff) | |
download | ds-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/slapd/plugin_syntax.c')
-rw-r--r-- | ldap/servers/slapd/plugin_syntax.c | 2 |
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) { |