[pjlib] Wrong socket length on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just applied the patch in http://trac.pjsip.org/repos/ticket/1040. Thanks!

Cheers
 Benny

On Mon, Feb 22, 2010 at 11:41 PM, Roman Grachev <roman.grachev at gmail.com> wrote:
> Hi,
>
> There is a problem with getting default ip interface on FreeBSD: in
> function pj_getdefaultipinterface() the socket length passed to
> pj_sock_connect() seems to be incorrect (although in works fine on
> Windows, Linux and Max, I checked). The following patch fixes the
> problem:
>
> Index: trunk/softphone/contrib/pj/pjlib/src/pj/sock_common.c
> ===================================================================
> --- a/trunk/softphone/contrib/pj/pjlib/src/pj/sock_common.c
> +++ b/trunk/softphone/contrib/pj/pjlib/src/pj/sock_common.c
>
> @@ -915,5 +915,5 @@
> ? ? }
>
> - ? ?status = pj_sock_connect(fd, &a, sizeof(a));
> + ? ?status = pj_sock_connect(fd, &a, pj_sockaddr_get_len(&a));
> ? ? if (status != PJ_SUCCESS) {
> ? ? ? ? pj_sock_close(fd);
>
> Roman Grachev
>
> P.S. I am duplicating this message because the last one never made it
> to the list
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux