[exim-dev] [Bug 909] New: connect() uses "wrong" addrlen in …

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Wolfgang Breyha
日付:  
To: exim-dev
題目: [exim-dev] [Bug 909] New: connect() uses "wrong" addrlen in dcc.c
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=909
           Summary: connect() uses "wrong" addrlen in dcc.c
           Product: Exim
           Version: 4.69
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: ACLs
        AssignedTo: nigel@???
        ReportedBy: wbreyha@???
                CC: exim-dev@???



Created an attachment (id=343)
--> (http://bugs.exim.org/attachment.cgi?id=343)
use sizeof(serv_addr) for connect()

A user reported troubles with my dcc patch on 64bit FreeBSD.

I used
servlen = Ustrlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
connect(sockfd, (struct sockaddr *) &serv_addr, servlen);

That doesn't work on all plattforms. I looked at some other parts of exim and
changed that to
connect(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr));
accordingly.

Greetings, Wolfgang


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email