]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8747 Do not continue reading if connection is dying
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 8 Jan 2021 11:33:24 +0000 (05:33 -0600)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 10 May 2021 18:49:13 +0000 (18:49 +0000)
servers/lloadd/connection.c

index fd1527f3e321c65efffe53b4cc8d5dcab400e9cb..5644138882ce5e912c3a2d8aeb34246fd2aa813f 100644 (file)
@@ -86,6 +86,10 @@ handle_pdus( void *ctx, void *arg )
             goto done;
         }
 
+        if ( !IS_ALIVE( c, c_live ) ) {
+            break;
+        }
+
         if ( ++pdus_handled >= lload_conn_max_pdus_per_cycle ) {
             /* Do not read now, re-enable read event instead */
             break;