]> git.sur5r.net Git - openldap/commitdiff
Fix typo in 1.250 fake sorted results control
authorHoward Chu <hyc@openldap.org>
Mon, 13 Jul 2009 02:42:38 +0000 (02:42 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 13 Jul 2009 02:42:38 +0000 (02:42 +0000)
servers/slapd/result.c

index 08b05e5caf4cef8752c379652539eb364e3beeab..353edc99820600722153d2dfef30324d94f3fab9 100644 (file)
@@ -302,11 +302,11 @@ send_ldap_controls( Operation *o, BerElement *ber, LDAPControl **c )
 
                ber_printf( sber, "{e}", LDAP_UNWILLING_TO_PERFORM );
 
-               if( ber_flatten2( ber, &sorted.ldctl_value, 0 ) == -1 ) {
+               if( ber_flatten2( sber, &sorted.ldctl_value, 0 ) == -1 ) {
                        return -1;
                }
 
-               (void) ber_free_buf( ber );
+               (void) ber_free_buf( sber );
 
                rc = send_ldap_control( ber, &sorted );
                if( rc == -1 ) return rc;