Explorar o código

Fix for #157901 : FMR in windows sync agreement code

David Boreham %!s(int64=20) %!d(string=hai) anos
pai
achega
4997581940
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 }