]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/vlvctrl.c
Merge remote branch 'origin/mdb.master'
[openldap] / libraries / libldap / vlvctrl.c
index d92084148e974c727d69eb6fca36884799bcf521..9a55a4b5235a13bb2e911680cea5fcace2f955f2 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2008 The OpenLDAP Foundation.
+ * Copyright 1998-2011 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -101,6 +101,7 @@ ldap_create_vlv_control_value(
 
        value->bv_val = NULL;
        value->bv_len = 0;
+       ld->ld_errno = LDAP_SUCCESS;
 
        ber = ldap_alloc_ber_with_options( ld );
        if ( ber == NULL ) {