Diff for /libraries/libldap/result.c between versions 1.37 and 1.41

version 1.37, 1999/09/02 06:05:18 version 1.41, 2000/05/13 00:38:39
Line 1 Line 1
   /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.40 1999/11/30 12:32:06 hyc Exp $ */
 /*  /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */   */
 /*  Portions  /*  Portions
Line 143  ldap_result( Line 144  ldap_result(
                 lastlm->lm_next = (all == 0 && lm->lm_chain != NULL                  lastlm->lm_next = (all == 0 && lm->lm_chain != NULL
                     ? lm->lm_chain : lm->lm_next);                      ? lm->lm_chain : lm->lm_next);
         }          }
         if ( all == 0 )          if ( all == 0 && lm->lm_chain != NULL )
           {
                   lm->lm_chain->lm_next = lm->lm_next;
                 lm->lm_chain = NULL;                  lm->lm_chain = NULL;
           }
         lm->lm_next = NULL;          lm->lm_next = NULL;
   
         *result = lm;          *result = lm;
Line 642  int Line 646  int
 ldap_msgtype( LDAPMessage *lm )  ldap_msgtype( LDAPMessage *lm )
 {  {
         assert( lm != NULL );          assert( lm != NULL );
         return ( lm == NULL ) ? lm->lm_msgtype : -1;          return ( lm != NULL ) ? lm->lm_msgtype : -1;
 }  }
   
   
Line 651  ldap_msgid( LDAPMessage *lm ) Line 655  ldap_msgid( LDAPMessage *lm )
 {  {
         assert( lm != NULL );          assert( lm != NULL );
   
         return ( lm == NULL ) ? lm->lm_msgid : -1;          return ( lm != NULL ) ? lm->lm_msgid : -1;
 }  }
   
   

Removed from v.1.37  
changed lines
  Added in v.1.41


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org