From: msweet Date: Tue, 8 Jul 2014 15:46:46 +0000 (+0000) Subject: The LPD backend did not work with some versions of glibc (STR #4452) X-Git-Tag: v2.2b1~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba14c7f86bf4ffa953a9caa0d6604ef47b53cd3;p=thirdparty%2Fcups.git The LPD backend did not work with some versions of glibc (STR #4452) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12004 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-1.7.txt b/CHANGES-1.7.txt index 110f3393f0..da72e6d506 100644 --- a/CHANGES-1.7.txt +++ b/CHANGES-1.7.txt @@ -25,6 +25,7 @@ CHANGES IN CUPS V1.7.4 - Fixed a bug in the CUPS_SC_GET_DEVICE_ID handling by the network backends (STR #4447) - Added USB quirk rule for Lexmark E230 (STR #4448) + - The LPD backend did not work with some versions of glibc (STR #4452) CHANGES IN CUPS V1.7.3 diff --git a/backend/lpd.c b/backend/lpd.c index 5815eef0ec..48d1a5fc67 100644 --- a/backend/lpd.c +++ b/backend/lpd.c @@ -1269,7 +1269,7 @@ rresvport_af(int *port, /* IO - Port number to bind to */ * Try binding the port to the socket; return if all is OK... */ - if (!bind(fd, (struct sockaddr *)&addr, sizeof(addr))) + if (!bind(fd, (struct sockaddr *)&addr, httpAddrSize(&addr))) return (fd); /*