diff --git a/src/sbbs3/js_msgbase.c b/src/sbbs3/js_msgbase.c index 86e345abf9fbd720649fbc94594c29273aa79d07..be39a18e10ba368e17b227dc7b7f548e031c410c 100644 --- a/src/sbbs3/js_msgbase.c +++ b/src/sbbs3/js_msgbase.c @@ -738,6 +738,7 @@ static JSBool js_get_msg_header_resolve(JSContext *cx, JSObject *obj, jsval id) LAZY_INTEGER_EXPAND("to_net_type", p->msg.to_net.type); LAZY_STRING_COND("to_net_addr", p->msg.to_net.type, smb_netaddr(&(p->msg).to_net)); LAZY_INTEGER_EXPAND("from_net_type", p->msg.from_net.type); + /* exception here because p->msg.from_net is NULL */ LAZY_STRING_COND("from_net_addr", p->msg.from_net.type, smb_netaddr(&(p->msg).from_net)); LAZY_INTEGER_EXPAND("replyto_net_type", p->msg.replyto_net.type); LAZY_STRING_COND("replyto_net_addr", p->msg.replyto_net.type, smb_netaddr(&(p->msg).replyto_net));