- Fix the previous patch.

This commit is contained in:
Miloslav Trmac 2009-05-03 03:39:29 +00:00
parent 441e95b04a
commit cd4e1283ea
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ diff -urN stunnel/src/libwrap.c stunnel-4.27/src/libwrap.c
return -1; return -1;
} }
- *recvfd=*((int *)CMSG_DATA(cmptr)); - *recvfd=*((int *)CMSG_DATA(cmptr));
+ memcpy(&recvfd, CMSG_DATA(cmptr), sizeof(int)); + memcpy(recvfd, CMSG_DATA(cmptr), sizeof(int));
#else #else
if(msg.msg_accrightslen==sizeof(int)) if(msg.msg_accrightslen==sizeof(int))
*recvfd=newfd; *recvfd=newfd;

View File

@ -1,7 +1,7 @@
Summary: An SSL-encrypting socket wrapper Summary: An SSL-encrypting socket wrapper
Name: stunnel Name: stunnel
Version: 4.27 Version: 4.27
Release: 2 Release: 3
License: GPLv2 License: GPLv2
Group: Applications/Internet Group: Applications/Internet
URL: http://stunnel.mirt.net/ URL: http://stunnel.mirt.net/
@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_sysconfdir}/stunnel/* %exclude %{_sysconfdir}/stunnel/*
%changelog %changelog
* Sun May 3 2009 Miloslav Trmač <mitr@redhat.com> - 4.27-3
- Fix the previous patch.
* Wed Apr 29 2009 Miloslav Trmač <mitr@redhat.com> - 4.27-2 * Wed Apr 29 2009 Miloslav Trmač <mitr@redhat.com> - 4.27-2
- Avoid aliasing undefined by ISO C - Avoid aliasing undefined by ISO C