Skip to content

Commit 7b6f6ae

Browse files
committed
Fix TCP Main crash with E_SHM_THRESHOLD
TCP Main has NULL @sroutes, so it would crash while raising the event.
1 parent 07ab0c1 commit 7b6f6ae

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
@@ -176,7 +176,7 @@ void get_route_name(int idx, str *name);
176176
((_ref)!=NULL && (_ref)->idx!=-1)
177177

178178
#define ref_script_route_check_and_update(_ref) \
179-
((_ref)!=NULL && (\
179+
(sroutes && (_ref)!=NULL && (\
180180
((_ref)->u.version==sroutes->version)\
181181
||\
182182
(update_script_route_ref(_ref)==0 && ((_ref)->u.version=sroutes->version))\

0 commit comments

Comments
 (0)