|
@@ -1061,7 +1061,8 @@ static inline int ds_update_dst(struct sip_msg *msg, str *uri, int mode)
|
|
|
}
|
|
|
if(ds_append_branch!=0 && route_type==FAILURE_ROUTE)
|
|
|
{
|
|
|
- if (append_branch(msg, 0, 0, duri->s, duri->len, Q_UNSPECIFIED, 0)!=1 )
|
|
|
+ if (append_branch(msg, 0, 0, (duri)?duri->s:0, (duri)?duri->len:0,
|
|
|
+ Q_UNSPECIFIED, 0)!=1 )
|
|
|
{
|
|
|
LM_ERR("append_branch action failed\n");
|
|
|
return -1;
|