X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fsortctrl.c;h=9c2903527351a3106ffa4532f2fc4b6f0bb02659;hb=473e2c997f6b1f226d35da186db8033c922001f3;hp=05c66eec099f75aaab2e79bdb306df9857703ea4;hpb=25d46e7578842557738d3f48d7f102be11a09ac6;p=openldap diff --git a/libraries/libldap/sortctrl.c b/libraries/libldap/sortctrl.c index 05c66eec09..9c29035273 100644 --- a/libraries/libldap/sortctrl.c +++ b/libraries/libldap/sortctrl.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2011 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) {