diff --git a/modules/topoh/th_msg.c b/modules/topoh/th_msg.c index 731d831..619d408 100644 --- a/modules/topoh/th_msg.c +++ b/modules/topoh/th_msg.c @@ -1033,7 +1033,8 @@ int th_route_direction(sip_msg_t *msg) int th_skip_msg(sip_msg_t *msg) { - if((get_cseq(msg)->method_id)&(METHOD_REGISTER|METHOD_PUBLISH)) + + if(get_cseq(msg) && ((get_cseq(msg)->method_id)&(METHOD_REGISTER|METHOD_PUBLISH))) return 1; return 0;