瀏覽代碼

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 年之前
父節點
當前提交
92d7458355
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {