]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/messages.c
Add ber_bvstr and ber_bvstrdup string to berval allocators.
[openldap] / libraries / libldap / messages.c
index a67aecc860e4a05421e56fdde3192054a5f82345..57e331daeb093cc1426eda758298b0fa6e70c79a 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -25,8 +26,8 @@ ldap_first_message( LDAP *ld, LDAPMessage *chain )
        assert( ld != NULL );
        assert( LDAP_VALID( ld ) );
 
-       if ( ld == NULL || chain == NULLMSG ) {
-               return NULLMSG;
+       if ( ld == NULL || chain == NULL ) {
+               return NULL;
        }
        
        return chain;
@@ -38,8 +39,8 @@ ldap_next_message( LDAP *ld, LDAPMessage *msg )
        assert( ld != NULL );
        assert( LDAP_VALID( ld ) );
 
-       if ( ld == NULL || msg == NULLMSG || msg->lm_chain == NULL ) {
-               return NULLMSG;
+       if ( ld == NULL || msg == NULL || msg->lm_chain == NULL ) {
+               return NULL;
        }
 
        return( msg->lm_chain );