X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libraries%2Flibldap%2Fvlvctrl.c;h=8cfd03a5b55f8d409f07d987762cff8171f74a4a;hb=a2c6a984270a536432d027a1b5f4830ae3f44176;hp=40785e95341d117692e6c5ffdb31b16348e7cb66;hpb=9ef1a740c24a155cfc7e7088f5da50de4dbc5088;p=openldap diff --git a/libraries/libldap/vlvctrl.c b/libraries/libldap/vlvctrl.c index 40785e9534..8cfd03a5b5 100644 --- a/libraries/libldap/vlvctrl.c +++ b/libraries/libldap/vlvctrl.c @@ -22,7 +22,6 @@ #include #include #include -#include #include "ldap-int.h" @@ -96,7 +95,7 @@ ldap_create_vlv_control( LDAP *ld, if( tag == LBER_ERROR ) goto exit; if (vlvinfop->ldvlv_attrvalue == NULL) { - tag = ber_printf(ber, "t{ii}", + tag = ber_printf(ber, "t{iiN}", LDAP_VLVBYINDEX_IDENTIFIER, vlvinfop->ldvlv_offset, vlvinfop->ldvlv_count); @@ -116,11 +115,11 @@ ldap_create_vlv_control( LDAP *ld, if( tag == LBER_ERROR ) goto exit; } - tag = ber_printf(ber, /*{*/ "}"); + tag = ber_printf(ber, /*{*/ "N}"); if( tag == LBER_ERROR ) goto exit; - ld->ld_errno = ldap_int_create_control( - LDAP_CONTROL_VLVREQUEST, ber, 1, ctrlp); + ld->ld_errno = ldap_create_control( LDAP_CONTROL_VLVREQUEST, + ber, 1, ctrlp); ber_free(ber, 1); return(ld->ld_errno);