Skip to content

Commit 83c3252

Browse files
committed
Fix TCP Main crash with E_SHM_THRESHOLD
TCP Main has NULL @sroutes, so it would crash while raising the event. (cherry picked from commit be88772)
1 parent b775af7 commit 83c3252

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

route.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void get_route_name(int idx, str *name);
153153
((_ref)!=NULL && (_ref)->idx!=-1)
154154

155155
#define ref_script_route_check_and_update(_ref) \
156-
((_ref)!=NULL && (\
156+
(sroutes && (_ref)!=NULL && (\
157157
((_ref)->u.version==sroutes->version)\
158158
||\
159159
(update_script_route_ref(_ref)==0 && ((_ref)->u.version=sroutes->version))\

0 commit comments

Comments
 (0)