tidying: coverity fixes
[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)
   {