Diff for /libraries/libldap/result.c between versions 1.99.2.21 and 1.99.2.23

version 1.99.2.21, 2007/01/02 21:43:49 version 1.99.2.23, 2007/03/13 08:53:15
Line 1 Line 1
 /* result.c - wait for an ldap result */  /* result.c - wait for an ldap result */
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.99.2.20 2006/12/14 08:48:16 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.99.2.22 2007/03/12 20:04:28 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2007 The OpenLDAP Foundation.   * Copyright 1998-2007 The OpenLDAP Foundation.
Line 369  wait4msg( Line 369  wait4msg(
                 }                  }
   
                 if ( rc == LDAP_MSG_X_KEEP_LOOKING && tvp != NULL ) {                  if ( rc == LDAP_MSG_X_KEEP_LOOKING && tvp != NULL ) {
                           time_t  delta_time;
   
                         tmp_time = time( NULL );                          tmp_time = time( NULL );
                         tv0.tv_sec -= ( tmp_time - start_time );                          delta_time = tmp_time - start_time;
                         if ( tv0.tv_sec <= 0 ) {  
                           /* do not assume time_t is signed */
                           if ( tv0.tv_sec <= delta_time ) {
                                 rc = 0; /* timed out */                                  rc = 0; /* timed out */
                                 ld->ld_errno = LDAP_TIMEOUT;                                  ld->ld_errno = LDAP_TIMEOUT;
                                 break;                                  break;
                         }                          }
                           tv0.tv_sec -= delta_time;
                         tv.tv_sec = tv0.tv_sec;                          tv.tv_sec = tv0.tv_sec;
   
                         Debug( LDAP_DEBUG_TRACE, "wait4msg ld %p %ld secs to go\n",                          Debug( LDAP_DEBUG_TRACE, "wait4msg ld %p %ld secs to go\n",

Removed from v.1.99.2.21  
changed lines
  Added in v.1.99.2.23


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