[Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication windows_connection.c, 1.8.2.1, 1.8.2.2

Nathan Kinder (nkinder) fedora-directory-commits at redhat.com
Thu Oct 6 18:15:38 UTC 2005


Author: nkinder

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/replication
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16228

Modified Files:
      Tag: Directory71RtmBranch
	windows_connection.c 
Log Message:
169954 - Moved illegal declaration to the top of code block


Index: windows_connection.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/replication/windows_connection.c,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -r1.8.2.1 -r1.8.2.2
--- windows_connection.c	6 Oct 2005 17:36:20 -0000	1.8.2.1
+++ windows_connection.c	6 Oct 2005 18:15:35 -0000	1.8.2.2
@@ -569,6 +569,8 @@
 			&conn->timeout, 0 /* sizelimit */, &res);
 		if (LDAP_SUCCESS == ldap_rc)
 		{
+			LDAPMessage *message = ldap_first_entry(conn->ld, res);
+
 			if (slapi_is_loglevel_set(SLAPI_LOG_REPL)) {
 				nummessages = ldap_count_messages(conn->ld, res);
 				numentries = ldap_count_entries(conn->ld, res);
@@ -576,7 +578,7 @@
 				LDAPDebug( LDAP_DEBUG_REPL, "windows_search_entry: recieved %d messages, %d entries, %d references\n",
                                    nummessages, numentries, numreferences );
 			}
-			LDAPMessage *message = ldap_first_entry(conn->ld, res);
+
 			if (NULL != entry)
 			{
 				*entry = windows_LDAPMessage2Entry(conn->ld,message,0);




More information about the 389-commits mailing list