Fix crash caused by race condition in timer creation

Merged Ondřej Surý requested to merge 556-race-condition-in-timer-creation into master

The race condition is the timer elapses before isc__timer_create() returns the pointer to the caller. Assigning the return pointer before enabling the timer will fix it.

Signed-off-by: Zhaolong Zhang

Closes #556 (closed)

Merge request reports