diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-16 19:31:57 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-17 10:48:36 +0100 |
commit | d620dcdd085ddca34f990588aae1c314917a5d32 (patch) | |
tree | d589a1e5fb4813e100fd377bae9378c37a619370 /src/Protocol | |
parent | Merge pull request #2753 from cuberite/pathFix (diff) | |
download | cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.gz cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.bz2 cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.lz cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.xz cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.zst cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/MojangAPI.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp index 73b3bd8c0..9eb8122d3 100644 --- a/src/Protocol/MojangAPI.cpp +++ b/src/Protocol/MojangAPI.cpp @@ -429,12 +429,11 @@ bool cMojangAPI::SecureRequest(const AString & a_ServerName, const AString & a_R } // Read the HTTP response: - int ret; unsigned char buf[1024]; for (;;) { - ret = Socket.Receive(buf, sizeof(buf)); + int ret = Socket.Receive(buf, sizeof(buf)); if ((ret == POLARSSL_ERR_NET_WANT_READ) || (ret == POLARSSL_ERR_NET_WANT_WRITE)) { |