Sfoglia il codice sorgente

Fix for #157901 : FMR in windows sync agreement code

David Boreham 20 anni fa
parent
commit
4997581940
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      ldap/servers/plugins/replication/windows_private.c

+ 2 - 1
ldap/servers/plugins/replication/windows_private.c

@@ -136,8 +136,9 @@ windows_parse_config_entry(Repl_Agmt *ra, const char *type, Slapi_Entry *e)
 		{
 			windows_private_set_windows_domain(ra,tmpstr);
 		}
+		/* No need to free tmpstr because it was aliased by the call above */
+		tmpstr = NULL;
 		retval = 1;
-		slapi_ch_free((void**)&tmpstr);
 	}
 	return retval;
 }