Date: Thu, 14 Aug 2014 07:12:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192648] New: [PATCH] net/belle-sip 1.3.0_1 resolv bug causes crash when using net/linphone 3.7.0,1 [FBSD 10.0] Message-ID: <bug-192648-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192648 Bug ID: 192648 Summary: [PATCH] net/belle-sip 1.3.0_1 resolv bug causes crash when using net/linphone 3.7.0,1 [FBSD 10.0] Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: freebsd@talk2dom.com Created attachment 145767 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145767&action=edit patch for net/belle-sip 1.3.0_1: files/patch-src_dns.c I built linphone, which required belle-sip, from ports. When running linphone, going to menu "Options" -> "Preferences" opens a "Settings" window. On the "Network settings" tab, check "Behind NAT / Firewall (use STUN to resolve)". After this, type into the "Stun server:" text input box. On the first key press linphone crashes. It seems that linphone attempts to resolve the hostname in the text box after every keypress. This in turn calls belle-sip's dns_resconf_loadfromresolv() in src/dns.c:4304. The crash is at line 4309 "if ((error = res_ninit(&res))) {" caused by res_ninit() being passed a pointer to a struct -that has not been initialized-. The fix is simply to insert the following before line 4309: bzero(&res, sizeof(res)); (patch also attached for saving into net/belle-sip/files/) Probably needs bouncing upstream. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192648-13>