Browse Source

Bug 610281 - fix coverity Defect Type: Control flow issues - last repl init status

https://bugzilla.redhat.com/show_bug.cgi?id=610281
Resolves: bug 610281
Bug Description: fix coverity Defect Type: Control flow issues - last repl init status
Reviewed by: one-line rule
Branch: master
Fix Description: agmt_set_last_init_status() is never called in order to set
the status to "Replica acquired successfully".  Adding that string to the
message breaks tests that expect init success to report
0 Total update succeeded
Platforms tested: RHEL5 x86_64, Fedora 14 x86_64
Flag Day: no
Doc impact: no
Rich Megginson 15 years ago
parent
commit
2a40b4d91c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/plugins/replication/repl5_agmt.c

+ 1 - 1
ldap/servers/plugins/replication/repl5_agmt.c

@@ -2030,7 +2030,7 @@ agmt_set_last_init_status (Repl_Agmt *ra, int ldaprc, int replrc, const char *me
 		else if (message != NULL) /* replrc == NSDS50_REPL_REPLICA_READY == 0 */
 		{
 			PR_snprintf(ra->last_init_status, STATUS_LEN,
-						"%d Replica acquired successfully: %s", 
+						"%d %s", 
 						ldaprc, message);
 		}
 		else