Skip to content

Commit 7c9c5ff

Browse files
committed
fix missing parent_table NULL check
1 parent ee2d5ea commit 7c9c5ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/routes.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,6 +2961,10 @@ static wolfsentry_errcode_t wolfsentry_route_event_dispatch_by_route_1(
29612961
WOLFSENTRY_ERROR_RERETURN(ret);
29622962
}
29632963

2964+
if (route->header.parent_table == NULL) {
2965+
ret = WOLFSENTRY_ERROR_ENCODE(INTERNAL_CHECK_FATAL);
2966+
goto out;
2967+
}
29642968
if (route->header.parent_table->ent_type != WOLFSENTRY_OBJECT_TYPE_ROUTE) {
29652969
ret = WOLFSENTRY_ERROR_ENCODE(WRONG_OBJECT);
29662970
goto out;

0 commit comments

Comments
 (0)