Diff for /libraries/libldap/result.c between versions 1.48 and 1.49

version 1.48, 2000/07/04 19:49:01 version 1.49, 2000/08/18 02:25:07
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.47 2000/06/23 23:40:40 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.48 2000/07/04 19:49:01 kurt Exp $ */
 /*  /*
  * Copyright 1998-2000 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
Line 910  ldap_mark_abandoned( LDAP *ld, ber_int_t Line 910  ldap_mark_abandoned( LDAP *ld, ber_int_t
   
         return( 0 );          return( 0 );
 }  }
   
   
 #ifdef LDAP_CONNECTIONLESS  
 int  
 cldap_getmsg( LDAP *ld, struct timeval *timeout, BerElement *ber )  
 {  
         int     rc;  
         ber_tag_t       tag;  
         ber_len_t       len;  
         ber_socket_t    sd;  
   
         ber_sockbuf_ctrl( ld->ld_sb, LBER_SB_OPT_GET_FD, &sd );  
         if ( sd != AC_SOCKET_INVALID ) {  
                 /* restored from ldap_select1() in result.c version 1.24 */  
                 fd_set  readfds;  
                 if ( ldap_int_tblsize == 0 )  
                         ldap_int_ip_init();  
                 FD_ZERO( &readfds );  
                 FD_SET( sd, &readfds );  
                 rc = select( ldap_int_tblsize, &readfds, 0, 0, timeout );  
   
                 if ( rc == -1 || rc == 0 ) {  
                         ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :  
                             LDAP_TIMEOUT);  
                         return( rc );  
                 }  
         }  
   
         /* get the next message */  
         if ( (tag = ber_get_next( ld->ld_sb, &len, ber ))  
             != LDAP_TAG_MESSAGE ) {  
                 ld->ld_errno = (tag == LBER_DEFAULT ? LDAP_SERVER_DOWN :  
                     LDAP_LOCAL_ERROR);  
                 return( -1 );  
         }  
   
         return( 0 );  
 }  
 #endif /* LDAP_CONNECTIONLESS */  

Removed from v.1.48  
changed lines
  Added in v.1.49


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