]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/extended.c
Handle timeouts from ldap_result()
[openldap] / libraries / libldap / extended.c
index 60ad3c92fe226eb6f719eec8d802ff9937ad5496..644180de0ecf0662291c4363544fb5131e8f54f5 100644 (file)
@@ -138,7 +138,7 @@ ldap_extended_operation_s(
         return( rc );
        }
  
-    if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, &res ) == -1 ) {
+    if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, &res ) == -1 || !res ) {
         return( ld->ld_errno );
        }