Blame SOURCES/Authen-SASL-RT85294-Fix-WRITE.patch

96286a
diff -up Authen-SASL-2.16/lib/Authen/SASL/Perl.pm.orig Authen-SASL-2.16/lib/Authen/SASL/Perl.pm
96286a
--- Authen-SASL-2.16/lib/Authen/SASL/Perl.pm.orig	2012-09-04 18:00:31.000000000 +0200
96286a
+++ Authen-SASL-2.16/lib/Authen/SASL/Perl.pm	2014-06-04 09:51:34.654310724 +0200
96286a
@@ -323,6 +323,9 @@ sub securesocket {
96286a
 
96286a
     my $fh = $self->{fh};
96286a
 
96286a
+    # Fix for BZ#965739, RT#85294
96286a
+    $len = length($_[1]) if $len > length($_[1]);
96286a
+
96286a
     # put on wire in peer-sized chunks
96286a
     my $bsz = $self->{sndbufsz};
96286a
     while ($len > 0) {