]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/transports/appendfile.c
TLS: do decent PIPELINING under TLS, at least with GnuTLS
[user/henk/code/exim.git] / src / src / transports / appendfile.c
index 760e9603921204b89bdb45b2f4ecd173e8363caf..da5d8aa0a8670127264e062a078f4863c264969f 100644 (file)
@@ -949,7 +949,7 @@ used = Ustrlen(deliver_out_buffer);
 
 /* Rewind the temporary file, and copy it over in chunks. */
 
-lseek(from_fd, 0 , SEEK_SET);
+if (lseek(from_fd, 0 , SEEK_SET) < 0) return DEFER;
 
 while (size > 0)
   {