From 838deb445b615aa06829164deb926ad68a42ae30 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Wed, 28 Dec 2022 21:58:25 +0100 Subject: Stream: Add IQ response sender check Verifies that the sender of the response is correct, so no evil entity can inject responses. Fixes #510. --- src/base/QXmppStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/QXmppStream.h') 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; QFuture sendIq(QXmppIq &&); - QFuture sendIq(QXmppPacket &&, const QString &id); + QFuture sendIq(QXmppPacket &&, const QString &id, const QString &to); void cancelOngoingIqs(); bool hasIqId(const QString &id) const; -- cgit v1.2.3