Skip to content
Snippets Groups Projects
Commit 53c677c3 authored by rswindell's avatar rswindell
Browse files

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
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment