]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/sortctrl.c
silence warnings
[openldap] / libraries / libldap / sortctrl.c
index 80faea92e33ec072e5d049c92f5aaca10cb87923..c523b631a258a5ad7fe46aed330f6ea00c4ec74d 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-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -304,6 +304,7 @@ ldap_create_sort_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) {