NMT: Fix SMS cleanup

This commit is contained in:
Andreas Eversberg 2016-07-31 18:52:31 +02:00
parent cc8631d4f9
commit 0bc5ee553c
1 changed files with 2 additions and 1 deletions

View File

@ -679,7 +679,8 @@ void sms_reset(nmt_t *nmt)
sms_t *sms = &nmt->sms;
PDEBUG(DSMS, DEBUG_DEBUG, "Resetting SMS states\n");
timer_stop(&nmt->sms_timer);
if (nmt->sms_timer.linked)
timer_stop(&nmt->sms_timer);
memset(sms, 0, sizeof(*sms));
}