]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Do not accept requests with msgid == 0
authorOndřej Kuzník <okuznik@symas.com>
Tue, 19 Nov 2019 18:21:55 +0000 (18:21 +0000)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:58:15 +0000 (17:58 +0000)
It is used internally to identify pinned operations and should not be
encountered over the wire.

servers/lloadd/operation.c

index f959701c44ecbaa68d59d3d87974a61f4c638a6c..0fdc1f4c40989d307b9fca99b036cd68f15cbab7 100644 (file)
@@ -146,6 +146,10 @@ operation_init( LloadConnection *c, BerElement *ber )
         goto fail;
     }
 
+    if ( !op->o_client_msgid ) {
+        goto fail;
+    }
+
     CONNECTION_ASSERT_LOCKED(c);
     rc = tavl_insert( &c->c_ops, op, operation_client_cmp, avl_dup_error );
     if ( rc ) {