Browse Source

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.
Noriko Hosoi 15 năm trước cách đây
mục cha
commit
92d7458355
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ldap/servers/slapd/plugin_syntax.c

+ 1 - 1
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) {