Do not accept requests with msgid == 0

It is used internally to identify pinned operations and should not be
encountered over the wire.
This commit is contained in:
Ondřej Kuzník 2019-11-19 18:21:55 +00:00
parent dfbf25d579
commit dfbed44b3e

View 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 ) {