aboutsummaryrefslogtreecommitdiff
path: root/src/Protocols/GameSpy0/gamespy0.cpp
diff options
context:
space:
mode:
authorDarkelarious <github@333networks.com>2025-05-04 16:08:07 +0200
committerDarkelarious <github@333networks.com>2025-05-04 16:08:07 +0200
commit8e1fdbe10862ccba3bdff2389c1bb732c6e84da4 (patch)
tree7cbbb5984f8fc5676cd610c388952caa1226c286 /src/Protocols/GameSpy0/gamespy0.cpp
parent10bd168b65766026ae47eb7619f9fe74ced75e16 (diff)
downloadMasterserver-Qt5-main.tar.gz
Masterserver-Qt5-main.zip
database pragmas and timeout restraintsHEADmain
Diffstat (limited to 'src/Protocols/GameSpy0/gamespy0.cpp')
-rw-r--r--src/Protocols/GameSpy0/gamespy0.cpp4
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;