diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-03-16 19:29:04 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-03-16 19:30:25 +0100 |
| commit | 395d2af80de7817dd2b092c2c7d9dfa3fa3f2744 (patch) | |
| tree | 9ab114a1fdee21c4db4c46d4a11f6af92dfeb3af /src/base/QXmppStartTlsPacket.h | |
| parent | 2264fb92e00e60031fa9d472ef7df305a7761aa6 (diff) | |
| download | qxmpp-395d2af80de7817dd2b092c2c7d9dfa3fa3f2744.tar.gz | |
StartTlsPacket: Fix UB when parsing invalid type
Diffstat (limited to 'src/base/QXmppStartTlsPacket.h')
| -rw-r--r-- | src/base/QXmppStartTlsPacket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/QXmppStartTlsPacket.h b/src/base/QXmppStartTlsPacket.h index 9b91bef9..5396f5d9 100644 --- a/src/base/QXmppStartTlsPacket.h +++ b/src/base/QXmppStartTlsPacket.h @@ -39,7 +39,8 @@ public: enum Type { StartTls, ///< Used by the client to initiate STARTTLS. Proceed, ///< Used by the server to accept STARTTLS. - Failure ///< Used by the server to reject STARTTLS. + Failure, ///< Used by the server to reject STARTTLS. + Invalid, ///< Invalid type }; QXmppStartTlsPacket(Type type = StartTls); |
