diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-12-28 21:58:25 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-12-28 22:56:35 +0100 |
| commit | 838deb445b615aa06829164deb926ad68a42ae30 (patch) | |
| tree | 267549c891617d9b871ef4a21a77b365c02de7a5 /src/base/QXmppStream.h | |
| parent | 3dd4267a5842d5b956dd79633fa2c8b81fb80d53 (diff) | |
| download | qxmpp-838deb445b615aa06829164deb926ad68a42ae30.tar.gz | |
Stream: Add IQ response sender check
Verifies that the sender of the response is correct, so no evil entity
can inject responses.
Fixes #510.
Diffstat (limited to 'src/base/QXmppStream.h')
| -rw-r--r-- | src/base/QXmppStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppStream.h b/src/base/QXmppStream.h index aba73785..f8c4e548 100644 --- a/src/base/QXmppStream.h +++ b/src/base/QXmppStream.h @@ -46,7 +46,7 @@ public: using IqResult = std::variant<QDomElement, QXmpp::SendError>; QFuture<IqResult> sendIq(QXmppIq &&); - QFuture<IqResult> sendIq(QXmppPacket &&, const QString &id); + QFuture<IqResult> sendIq(QXmppPacket &&, const QString &id, const QString &to); void cancelOngoingIqs(); bool hasIqId(const QString &id) const; |
