diff options
| author | Linus Jahn <lnj@kaidan.im> | 2023-03-13 19:51:02 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2023-03-13 20:28:03 +0100 |
| commit | 4985e321d57600faf206e22ed1228b9bd442a4f3 (patch) | |
| tree | 2d1861a53cd6ecd8fc3dcccc86b2231c0725d089 | |
| parent | 2d45a382a1b96a08a7167cd9719dd9047fcc9167 (diff) | |
IqHandling: Fix use-after-move
Fixes #544.
| -rw-r--r-- | src/client/QXmppIqHandling.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/QXmppIqHandling.h b/src/client/QXmppIqHandling.h index 7535bc30..63eba306 100644 --- a/src/client/QXmppIqHandling.h +++ b/src/client/QXmppIqHandling.h @@ -95,12 +95,10 @@ namespace Private { iq.parse(element); iq.setE2eeMetadata(e2eeMetadata); - processHandleIqResult( - client, - iq.id(), - iq.from(), - e2eeMetadata, - invokeIqHandler(std::forward<Handler>(handler), std::move(iq))); + auto id = iq.id(), from = iq.from(); + + processHandleIqResult(client, id, from, e2eeMetadata, + invokeIqHandler(std::forward<Handler>(handler), std::move(iq))); return true; } return false; |
