mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
More cleanup
This commit is contained in:
parent
48ffbcce3c
commit
addb1320a4
1 changed files with 4 additions and 2 deletions
|
|
@ -34,6 +34,8 @@
|
||||||
#include "lutil.h"
|
#include "lutil.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include "../../../libraries/liblber/lber-int.h" /* ber_rewind */
|
||||||
|
|
||||||
/* RFC2891: Server Side Sorting
|
/* RFC2891: Server Side Sorting
|
||||||
* RFC2696: Paged Results
|
* RFC2696: Paged Results
|
||||||
*/
|
*/
|
||||||
|
|
@ -76,7 +78,7 @@ typedef struct sort_key
|
||||||
|
|
||||||
typedef struct sort_ctrl {
|
typedef struct sort_ctrl {
|
||||||
int sc_nkeys;
|
int sc_nkeys;
|
||||||
sort_key sc_keys[0];
|
sort_key sc_keys[1];
|
||||||
} sort_ctrl;
|
} sort_ctrl;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1000,7 +1002,7 @@ static int sss_parseCtrl(
|
||||||
i = count_key( ber );
|
i = count_key( ber );
|
||||||
|
|
||||||
sc = op->o_tmpalloc( sizeof(sort_ctrl) +
|
sc = op->o_tmpalloc( sizeof(sort_ctrl) +
|
||||||
i * sizeof(sort_key), op->o_tmpmemctx );
|
(i-1) * sizeof(sort_key), op->o_tmpmemctx );
|
||||||
sc->sc_nkeys = i;
|
sc->sc_nkeys = i;
|
||||||
op->o_controls[sss_cid] = sc;
|
op->o_controls[sss_cid] = sc;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue