out = BIO_push(bf, out);
if (flags & SMIME_BINARY) {
while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) {
- if (BIO_write(out, linebuf, len) != len && out != NULL)
+ if (BIO_write(out, linebuf, len) != len)
goto err;
}
} else {
goto err;
eolcnt = 0;
}
- if (BIO_write(out, linebuf, len) != len && out != NULL)
+ if (BIO_write(out, linebuf, len) != len)
goto err;
if (eol && BIO_puts(out, "\r\n") < 0)
goto err;
}
sk_MIME_HEADER_pop_free(headers, mime_hdr_free);
while ((len = BIO_read(in, iobuf, sizeof(iobuf))) > 0)
- if (BIO_write(out, iobuf, len) != len && out != NULL)
+ if (out != NULL && BIO_write(out, iobuf, len) != len)
return 0;
return len >= 0;
}