Module: sip-router Branch: ser_core_cvs Commit: 2b038252c53ebf3e149249037983c4bad6827a04 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2b038252...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Jul 14 07:38:32 2009 +0000
tm: fifo access From fix
Access the From header contents only if non-null.
---
modules/tm/t_fifo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/tm/t_fifo.c b/modules/tm/t_fifo.c index d5e0be9..0cf4ed1 100644 --- a/modules/tm/t_fifo.c +++ b/modules/tm/t_fifo.c @@ -702,7 +702,7 @@ static int assemble_msg(struct sip_msg* msg, struct tw_info *twi) }
/* parse from header */ - if (msg->from->parsed==0 && parse_from_header(msg)==-1 ) { + if (msg->from==0 || (msg->from->parsed==0 && parse_from_header(msg)==-1)) { LOG(L_ERR,"assemble_msg: while parsing From: header\n"); goto error; }