generate_api
Volker Birk 5 years ago
commit 69beec380b

@ -906,7 +906,7 @@ static message* wrap_message_as_attachment(message* envelope,
replace_opt_field(attachment, "X-pEp-Version", PEP_VERSION, true);
if (!_envelope || (wrap_type != PEP_message_transport)) {
if (!_envelope && (wrap_type != PEP_message_transport)) {
_envelope = extract_minimal_envelope(attachment, PEP_dir_outgoing);
status = generate_message_id(_envelope);
@ -924,9 +924,12 @@ static message* wrap_message_as_attachment(message* envelope,
attachment->longmsg = encapsulate_message_wrap_info(inner_type_string, attachment->longmsg);
_envelope->longmsg = encapsulate_message_wrap_info("OUTER", _envelope->longmsg);
}
else {
else if (_envelope) {
_envelope->longmsg = encapsulate_message_wrap_info("TRANSPORT", _envelope->longmsg);
}
else {
return NULL;
}
if (!attachment->id || attachment->id[0] == '\0') {
free(attachment->id);

@ -2001,7 +2001,6 @@ DYNAMIC_API PEP_STATUS get_default_own_userid(
default:
// Technically true, given how we find it, but FIXME we need a more descriptive error
status = PEP_CANNOT_FIND_IDENTITY;
*userid = NULL;
}
*userid = retval;

Loading…
Cancel
Save