infra: fix proto_level conditions

This commit is contained in:
Thomas Schoebel-Theuer 2020-07-08 22:10:08 +02:00
parent 48a72c6bb4
commit e02bd88349

View File

@ -520,6 +520,13 @@ int handler_thread(void *data)
up(&dent_limit_sem);
/* Looks strange, but is needed for not triggering
* a masked bug in old MARS versions during mixed
* updates.
*/
if (sock->s_common_proto_level >= 2)
old_proto_level = sock->s_common_proto_level;
down(&brick->socket_sem);
status = mars_send_dent_list(sock, &handler_global->dent_anchor);
up(&brick->socket_sem);