I got SIGSEGV in raw_sender::send caused by uninitialized NetIfIdx for iface
patch in attach solves issue.

-- 
Best Regards
Michael Furmur

>From cdd92b783e070ec617032fc3c65edf195ee6160e Mon Sep 17 00:00:00 2001
From: murfur <[email protected]>
Date: Fri, 21 Feb 2014 17:02:40 +0200
Subject: [PATCH] resolve NetIf and NetIfIdx for ifaces which was choosen by
 default

---
 core/AmConfig.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/AmConfig.cpp b/core/AmConfig.cpp
index 67892d3..9510a38 100644
--- a/core/AmConfig.cpp
+++ b/core/AmConfig.cpp
@@ -1146,6 +1146,7 @@ int AmConfig::finalizeIPConfig()
       return -1;
     }
     SIP_Ifs.push_back(intf);
+    setNetInterface(&(*SIP_Ifs.begin()));
     SIP_If_names["default"] = 0;
   }
 
@@ -1157,6 +1158,7 @@ int AmConfig::finalizeIPConfig()
       return -1;
     }
     RTP_Ifs.push_back(intf);
+    setNetInterface(&(*RTP_Ifs.begin()));
     RTP_If_names["default"] = 0;
   }
 
-- 
1.8.5.3

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to