File libldap_ctrl_lderrno.dif of Package openldap2-client

Index: libraries/libldap/pagectrl.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/pagectrl.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- libraries/libldap/pagectrl.c	9 Jan 2008 12:28:09 -0000	1.10
+++ libraries/libldap/pagectrl.c	21 Oct 2008 14:17:41 -0000	1.11
@@ -71,6 +71,7 @@
 
 	value->bv_val = NULL;
 	value->bv_len = 0;
+	ld->ld_errno = LDAP_SUCCESS;
 
 	if ( cookie == NULL ) {
 		cookie = &null_cookie;
Index: libraries/libldap/sortctrl.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/sortctrl.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- libraries/libldap/sortctrl.c	7 Jan 2008 23:20:04 -0000	1.24
+++ libraries/libldap/sortctrl.c	21 Oct 2008 14:17:41 -0000	1.25
@@ -304,6 +304,7 @@
 
 	value->bv_val = NULL;
 	value->bv_len = 0;
+	ld->ld_errno = LDAP_SUCCESS;
 
 	ber = ldap_alloc_ber_with_options( ld );
 	if ( ber == NULL) {
Index: libraries/libldap/vlvctrl.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/vlvctrl.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- libraries/libldap/vlvctrl.c	7 Jan 2008 23:20:05 -0000	1.25
+++ libraries/libldap/vlvctrl.c	21 Oct 2008 14:17:41 -0000	1.26
@@ -101,6 +101,7 @@
 
 	value->bv_val = NULL;
 	value->bv_len = 0;
+	ld->ld_errno = LDAP_SUCCESS;
 
 	ber = ldap_alloc_ber_with_options( ld );
 	if ( ber == NULL ) {
Index: libraries/libldap/stctrl.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/stctrl.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- libraries/libldap/stctrl.c	7 Jan 2008 23:20:04 -0000	1.4
+++ libraries/libldap/stctrl.c	21 Oct 2008 14:17:41 -0000	1.5
@@ -60,6 +60,7 @@
 	}
 
 	assert( LDAP_VALID( ld ) );
+	ld->ld_errno = LDAP_SUCCESS;
 
 	/* check sizes according to I.D. */
 	if ( sessionSourceIp == NULL ) {
openSUSE Build Service is sponsored by