]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/vlvctrl.c
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
[openldap] / libraries / libldap / vlvctrl.c
index b1638cfe893ef63de613b0542f681b44f5f90108..a4b10cec056912bee721151084ca7efd3d11397b 100644 (file)
@@ -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 */
  * 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.
+ */
 
 #include "portable.h"
 
@@ -80,6 +84,7 @@ ldap_create_vlv_control( LDAP *ld,
        BerElement *ber;
 
        assert( ld != NULL );
+       assert( LDAP_VALID( ld ) );
        assert( vlvinfop != NULL );
        assert( ctrlp != NULL );
 
@@ -203,6 +208,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. */