Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 84009d35 authored by Rob Swindell's avatar Rob Swindell 💬

Close the mime part even when error opening file

If there was an error opening a file for attachment, the MIME part would be left unterminated.
parent d23ad38a
Pipeline #1188 passed with stage
in 16 minutes and 48 seconds
......@@ -859,11 +859,11 @@ static ulong sockmimetext(SOCKET socket, const char* prot, CRYPT_SESSION sess, s
lprintf(LOG_ERR,"%04u %s !ERROR opening/encoding/sending %s", socket, prot, file_list[i]);
else {
lprintf(LOG_WARNING,"%04u %s !ERROR %d (%s) removing %s", socket, prot, errno, strerror(errno), file_list[i]);
sockprintf(socket,prot,sess,"."); /* End of text */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment