From cd4e1283ea076810f5e1da4f7b874d70c16b9e0e Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Sun, 3 May 2009 03:39:29 +0000 Subject: [PATCH] - Fix the previous patch. --- stunnel-4.27-aliasing.patch | 2 +- stunnel.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stunnel-4.27-aliasing.patch b/stunnel-4.27-aliasing.patch index 185e871..4db64f8 100644 --- a/stunnel-4.27-aliasing.patch +++ b/stunnel-4.27-aliasing.patch @@ -6,7 +6,7 @@ diff -urN stunnel/src/libwrap.c stunnel-4.27/src/libwrap.c return -1; } - *recvfd=*((int *)CMSG_DATA(cmptr)); -+ memcpy(&recvfd, CMSG_DATA(cmptr), sizeof(int)); ++ memcpy(recvfd, CMSG_DATA(cmptr), sizeof(int)); #else if(msg.msg_accrightslen==sizeof(int)) *recvfd=newfd; diff --git a/stunnel.spec b/stunnel.spec index a042eb0..3853dd3 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -1,7 +1,7 @@ Summary: An SSL-encrypting socket wrapper Name: stunnel Version: 4.27 -Release: 2 +Release: 3 License: GPLv2 Group: Applications/Internet URL: http://stunnel.mirt.net/ @@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_sysconfdir}/stunnel/* %changelog +* Sun May 3 2009 Miloslav Trmač - 4.27-3 +- Fix the previous patch. + * Wed Apr 29 2009 Miloslav Trmač - 4.27-2 - Avoid aliasing undefined by ISO C