X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fvlvctrl.c;h=033adcf143734db7d9b6fded87741b14143fc610;hb=6f632af4132d81e2c70466b539349b19c5d46f69;hp=b1638cfe893ef63de613b0542f681b44f5f90108;hpb=99f5983fb6e185fd1f135cb99776da6e581f71e1;p=openldap diff --git a/libraries/libldap/vlvctrl.c b/libraries/libldap/vlvctrl.c index b1638cfe89..033adcf143 100644 --- a/libraries/libldap/vlvctrl.c +++ b/libraries/libldap/vlvctrl.c @@ -1,5 +1,5 @@ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* Adapted for inclusion into OpenLDAP by Kurt D. Zeilenga */ @@ -15,6 +15,14 @@ * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY. *---*/ +/* Note: A verbatim copy of version 2.0.1 of the OpenLDAP Public License + * can be found in the file "build/LICENSE-2.0.1" in this distribution + * of OpenLDAP Software. + */ +/* + * Portions Copyright (C) The Internet Society (1997) + * ASN.1 fragments are from RFC 2251; see RFC for full legal notices. + */ #include "portable.h" @@ -80,6 +88,7 @@ ldap_create_vlv_control( LDAP *ld, BerElement *ber; assert( ld != NULL ); + assert( LDAP_VALID( ld ) ); assert( vlvinfop != NULL ); assert( ctrlp != NULL ); @@ -203,6 +212,7 @@ ldap_parse_vlv_control( ber_len_t berLen; assert( ld != NULL ); + assert( LDAP_VALID( ld ) ); if (contextp) { *contextp = NULL; /* Make sure we return a NULL if error occurs. */