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

Commit 53c677c3 authored by rswindell's avatar rswindell

MsgBase.put_msg_header() now updates the internal (smbmsg_t) representation

of the message header so that functions that need it (e.g. bbs.show_msg_header)
don't use/show stale data. This change requires the updated smb_copymsgmem()
which clear/sets message convenience pointers upon copying hfields from one
message header to another.
parent 3debb32c
......@@ -2043,6 +2043,11 @@ js_put_msg_header(JSContext *cx, uintN argc, jsval *arglist)
if((p->smb_result=smb_putmsg(&(p->smb), &msg))!=SMB_SUCCESS)
break;
if(mp != NULL) {
smb_freemsgmem(&mp->msg);
smb_copymsgmem(&(p->smb), &mp->msg, &msg);
}
JS_SET_RVAL(cx, arglist, JSVAL_TRUE);
} while(0);
......
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