diff options
| author | Darkelarious <github@333networks.com> | 2025-05-04 16:08:07 +0200 |
|---|---|---|
| committer | Darkelarious <github@333networks.com> | 2025-05-04 16:08:07 +0200 |
| commit | 8e1fdbe10862ccba3bdff2389c1bb732c6e84da4 (patch) | |
| tree | 7cbbb5984f8fc5676cd610c388952caa1226c286 /src/Protocols | |
| parent | 10bd168b65766026ae47eb7619f9fe74ced75e16 (diff) | |
| download | Masterserver-Qt5-main.tar.gz Masterserver-Qt5-main.zip | |
Diffstat (limited to 'src/Protocols')
| -rw-r--r-- | src/Protocols/GameSpy0/gamespy0.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Protocols/GameSpy0/gamespy0.cpp b/src/Protocols/GameSpy0/gamespy0.cpp index 6595d4a..64026b8 100644 --- a/src/Protocols/GameSpy0/gamespy0.cpp +++ b/src/Protocols/GameSpy0/gamespy0.cpp @@ -23,6 +23,10 @@ QMultiHash<QString, QString> parseGameSpy0Buffer(const QString &bufferString) // unify valid keys QString key = overrideKey( property.next().trimmed() ); + // skip empty key field (can happen after queryid) + if ( !key.length() ) + continue; + // see if a value for this key exists if ( ! property.hasNext() ) break; |
