patch 9.1.0910: 'messagesopt' does not check max wait time
Problem: 'messagesopt' does not check max wait time
(after v9.1.0908)
Solution: Check for max wait value
(Shougo Matsushita)
closes: #16183
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
72212c9bea
commit
d9e9f89e0f
@ -1137,6 +1137,10 @@ messagesopt_changed(void)
|
||||
if (messages_history_new > 10000)
|
||||
return FAIL;
|
||||
|
||||
// "wait" must be <= 10000
|
||||
if (messages_wait_new > 10000)
|
||||
return FAIL;
|
||||
|
||||
msg_flags = messages_flags_new;
|
||||
msg_wait = messages_wait_new;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user