FreeBSD Bugzilla – Attachment 204073 Details for
Bug 237613
[patch] mail/nullmailer: Fix send fail with interrupted/again calls on GnuTLS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
GnuTLS patches for tls[io]buf.cc
nullmailer-1.13_4,1.diff (text/plain), 2.13 KB, created by
David Hauweele
on 2019-04-27 22:35:48 UTC
(
hide
)
Description:
GnuTLS patches for tls[io]buf.cc
Filename:
MIME Type:
Creator:
David Hauweele
Created:
2019-04-27 22:35:48 UTC
Size:
2.13 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 499801) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= nullmailer > PORTVERSION= 1.13 >-PORTREVISION= 3 >+PORTREVISION= 4 > PORTEPOCH= 1 > CATEGORIES= mail > MASTER_SITES= http://untroubled.org/nullmailer/ \ >Index: files/patch-lib_fdbuf_tlsibuf.cc >=================================================================== >--- files/patch-lib_fdbuf_tlsibuf.cc (nonexistent) >+++ files/patch-lib_fdbuf_tlsibuf.cc (working copy) >@@ -0,0 +1,14 @@ >+--- lib/fdbuf/tlsibuf.cc.orig >++++ lib/fdbuf/tlsibuf.cc >+@@ -27,5 +27,10 @@ >+ >+ ssize_t tlsibuf::_read(char* buf, ssize_t len) >+ { >+- return gnutls_record_recv(session, buf, len); >++ ssize_t rc; >++ do >++ { >++ rc = gnutls_record_recv(session, buf, len); >++ } while (rc == GNUTLS_E_AGAIN || rc == GNUTLS_E_INTERRUPTED); >++ return rc; >+ } > >Property changes on: files/patch-lib_fdbuf_tlsibuf.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-lib_fdbuf_tlsobuf.cc >=================================================================== >--- files/patch-lib_fdbuf_tlsobuf.cc (nonexistent) >+++ files/patch-lib_fdbuf_tlsobuf.cc (working copy) >@@ -0,0 +1,14 @@ >+--- lib/fdbuf/tlsobuf.cc.orig >++++ lib/fdbuf/tlsobuf.cc >+@@ -27,5 +27,10 @@ >+ >+ ssize_t tlsobuf::_write(const char* buf, ssize_t len) >+ { >+- return gnutls_record_send(session, buf, len); >++ ssize_t rc; >++ do >++ { >++ rc = gnutls_record_send(session, buf, len); >++ } while(rc == GNUTLS_E_AGAIN || rc == GNUTLS_E_INTERRUPTED); >++ return rc; >+ } > >Property changes on: files/patch-lib_fdbuf_tlsobuf.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237613
: 204073