]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/sortctrl.c
Fix typo in comment
[openldap] / libraries / libldap / sortctrl.c
index 05c66eec099f75aaab2e79bdb306df9857703ea4..50bed40b7d53998a27d0e1b22c6138f45ecd979c 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2010 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) {