Skip to content

Commit

Permalink
Fixed crash on Jingle transport reject
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 24, 2024
1 parent 6adb780 commit 4a23958
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xmpp/xmpp-im/jingle-session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,12 @@ namespace XMPP { namespace Jingle {
lastError = ErrorUtil::makeTieBreak(*manager->client()->doc());
return false;
} else if (toReject.size()) {
outgoingUpdates.insert(Action::TransportReject, OutgoingUpdate { toReject, OutgoingUpdateCB() });
QList<QDomElement> rejectImported;
std::transform(toReject.begin(), toReject.end(), std::back_inserter(rejectImported),
[this](const QDomElement &e) {
return manager->client()->doc()->importNode(e.cloneNode(true), true).toElement();
});
outgoingUpdates.insert(Action::TransportReject, OutgoingUpdate { rejectImported, OutgoingUpdateCB() });
}

planStep();
Expand Down

0 comments on commit 4a23958

Please sign in to comment.