From: Quanah Gibson-Mount Date: Thu, 31 Jan 2019 02:37:07 +0000 (+0000) Subject: ITS#8968 - Fix ASYNC connection on Solaris 10 X-Git-Tag: OPENLDAP_REL_ENG_2_4_48~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61680107a1f4599f0bbddefc3727ed94f3088f52;p=thirdparty%2Fopenldap.git ITS#8968 - Fix ASYNC connection on Solaris 10 Fixes ASYNC connections to handle a return code of ENOTCONN as this is what Solaris 10 does. --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 356c9bcf79..3849d996b2 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -184,7 +184,8 @@ ldap_int_flush_request( LDAP_ASSERT_MUTEX_OWNER( &ld->ld_conn_mutex ); if ( ber_flush2( lc->lconn_sb, lr->lr_ber, LBER_FLUSH_FREE_NEVER ) != 0 ) { - if ( sock_errno() == EAGAIN ) { + if (( sock_errno() == EAGAIN ) || ( sock_errno() == ENOTCONN )) { + /* ENOTCONN is returned in Solaris 10 */ /* need to continue write later */ lr->lr_status = LDAP_REQST_WRITING; ldap_mark_select_write( ld, lc->lconn_sb );