Skip to content

Commit 248948a

Browse files
committed
Merge branch 'bugfix/ra-infinite' into 'main'
bugfix: fix crash on router advertisements with infinite timeout See merge request app-frameworks/esp-matter!166
2 parents 8292553 + b68a552 commit 248948a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/route_hook/src/esp_route_table.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ esp_route_entry_t *esp_route_table_add_route_entry(const esp_route_entry_t *rout
7777
}
7878
entry->preference = route_entry->preference;
7979
entry->lifetime_seconds = route_entry->lifetime_seconds;
80-
sys_timeout(entry->lifetime_seconds * 1000, route_timeout_handler, entry);
80+
if (entry->lifetime_seconds != UINT32_MAX) {
81+
sys_timeout(entry->lifetime_seconds * 1000, route_timeout_handler, entry);
82+
}
8183
return entry;
8284
}
8385

0 commit comments

Comments
 (0)