فهرست منبع

modules/outbound: Fixes the crash but is logically incorrect for outbound

- Not sure why the crash happened at all - but this fix breaks the outbound logic

Revert "outbound Fix core dump crash"

This reverts commit 6369444761d44526ded2620e33438abb182d2bdc.
Peter Dunkley 12 سال پیش
والد
کامیت
8d10bcd448
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/outbound/ob_mod.c

+ 1 - 1
modules/outbound/ob_mod.c

@@ -294,7 +294,7 @@ int use_outbound(struct sip_msg *msg)
 
 	/* Look for ;reg-id in REGISTER Contact-URIs and ;ob in any
 	   Contact-URIs */
-	if (msg->contact && parse_headers(msg, HDR_CONTACT_F, 0) != -1)
+	if (msg->contact || parse_headers(msg, HDR_CONTACT_F, 0) != -1)
 	{
 		if (parse_contact(msg->contact) < 0)
 		{