fix logic bug in getthreadid
authorPhilipp Takacs <philipp@bureaucracy.de>
Fri, 11 Jan 2019 01:28:29 +0000 (02:28 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Fri, 11 Jan 2019 02:08:09 +0000 (03:08 +0100)
commitb272c556cc930991994028c72ee487b38dada93c
treed1461fd428f9dd83ac265263a1fdae3132890e6d
parentdcc1fcf2a376677f3a094d6a86c95526d816d52e
fix logic bug in getthreadid

getthreadid now early exit the m_getfld2 loop, if the message-id _and_
the references field is found. Without this the wrong thread-id may
found if the message-id field is before the references field.
Thanks c_14 for reporting
sbr/getthreadid.c
test/tests/pick/test-thread