From dfbed44b3e427d87dd5d91978e334f14de9f526a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 19 Nov 2019 18:21:55 +0000 Subject: [PATCH] Do not accept requests with msgid == 0 It is used internally to identify pinned operations and should not be encountered over the wire. --- servers/lloadd/operation.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/lloadd/operation.c b/servers/lloadd/operation.c index f959701c44..0fdc1f4c40 100644 --- a/servers/lloadd/operation.c +++ b/servers/lloadd/operation.c @@ -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 ) {