Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: dev

[Bug 909] New: connect() uses "wrong" addrlen in dcc.c

 

 

exim dev RSS feed   Index | Next | Previous | View Threaded


wbreyha at gmx

Nov 11, 2009, 2:55 PM

Post #1 of 1 (420 views)
Permalink
[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 [at] exim
ReportedBy: wbreyha [at] gmx
CC: exim-dev [at] exim


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

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

exim dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.