We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 757e30e commit c37bd2fCopy full SHA for c37bd2f
1 file changed
src/ssl_misc.c
@@ -230,12 +230,14 @@ static int wolfssl_file_len(XFILE fp, long* fileSz)
230
/* Get file offset at end of file. */
231
curr = (long)XFTELL(fp);
232
if (curr < 0) {
233
+#ifdef ESPIPE
234
if (errno == ESPIPE) {
235
WOLFSSL_ERROR_MSG("wolfssl_file_len: file is a pipe");
236
*fileSz = 0;
237
ret = WOLFSSL_BAD_FILETYPE;
238
}
239
else
240
+#endif
241
ret = WOLFSSL_BAD_FILE;
242
243
0 commit comments