Package: sofia-sip-bin
Version: 1.12.3-2
Severity: important
Tags: fixed-upstream, patch, upstream

$ stunc stun.ekiga.net -n
assign_socket: local socket is bound to 0.0.0.0:35771
main: stun_test_nattype()  failed

According to 
<http://www.mail-archive.com/sofia-sip-devel@lists.sourceforge.net/msg00904.html>,
this is 
<http://sourceforge.net/tracker/index.php?func=detail&aid=1574342&group_id=143636&atid=756076>
and is fixed upstream:

Tue Oct 10 13:20:27 BST 2006  [EMAIL PROTECTED]
  * Fixed STUN functionality. Incorrect sockaddr len was passed to su_sendto().

The patch is attached.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages sofia-sip-bin depends on:
ii  libsofia-sip-ua0              1.12.3-2   Sofia-SIP library runtime

sofia-sip-bin recommends no packages.

-- no debconf information
Tue Oct 10 13:20:27 BST 2006  [EMAIL PROTECTED]
  * Fixed STUN functionality. Incorrect sockaddr len was passed to su_sendto().
diff -rN -u old-sofia-sip/libsofia-sip-ua/stun/stun_common.c new-sofia-sip/libsofia-sip-ua/stun/stun_common.c
--- old-sofia-sip/libsofia-sip-ua/stun/stun_common.c	2006-11-15 01:46:19.000000000 +0000
+++ new-sofia-sip/libsofia-sip-ua/stun/stun_common.c	2006-11-15 01:46:19.000000000 +0000
@@ -614,11 +614,9 @@
   char ipaddr[SU_ADDRSIZE + 2];
   stun_attr_t **a, *b;
 
-  socklen_t tolen = SU_ADDRLEN(to_addr);
-
   stun_encode_message(msg, pwd);
 
-  err = su_sendto(s, msg->enc_buf.data, msg->enc_buf.size, 0, to_addr, tolen);
+  err = su_sendto(s, msg->enc_buf.data, msg->enc_buf.size, 0, to_addr, sizeof *to_addr);
 
   free(msg->enc_buf.data), msg->enc_buf.data = NULL;
   msg->enc_buf.size = 0;

Reply via email to