From c37b5d80dcbc0b30427ac7671b9eccd8856b1579 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 7 Aug 2006 08:38:52 +0000 Subject: Freeaddrinfo() fix for Uli Zappe's bug. This might fix Debian Bug#294547 and Bug#377135. svn path=/branches/BRANCH_6-3/; revision=4880 --- sink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index 3e0ac359..2e36e57e 100644 --- a/sink.c +++ b/sink.c @@ -141,7 +141,7 @@ int smtp_open(struct query *ctl) portnum = cp; } if ((ctl->smtp_socket = SockOpen(parsed_host,portnum, - ctl->server.plugout)) == -1) + ctl->server.plugout, &ai1)) == -1) { xfree(parsed_host); continue; @@ -179,7 +179,7 @@ int smtp_open(struct query *ctl) else { if ((ctl->smtp_socket = SockOpen(parsed_host,portnum, - ctl->server.plugout)) == -1) + ctl->server.plugout, &ai1)) == -1) { xfree(parsed_host); continue; @@ -279,7 +279,7 @@ static int send_bouncemail(struct query *ctl, struct msgblk *msg, /* we need only SMTP for this purpose */ /* XXX FIXME: hardcoding localhost is nonsense if smtphost can be * configured */ - if ((sock = SockOpen("localhost", SMTP_PORT, NULL)) == -1) + if ((sock = SockOpen("localhost", SMTP_PORT, NULL, &ai1)) == -1) return(FALSE); if (SMTP_ok(sock, SMTP_MODE) != SM_OK) -- cgit v1.2.3