The array has TIMEOUTS elements, so timeout_list[TIMEOUTS] is one
element past the end.
Change-Id: I42e7ef1a481840699a8dffff1406c4b42d42fde1
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3017
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
void unregisterTimer(int idx)
{
- if( 0 <= idx && idx <= TIMEOUTS)
+ if( 0 <= idx && idx < TIMEOUTS)
timeout_list[idx].timeout_state = TIMEOUT_UNUSED;
}