Created
August 7, 2014 12:42
-
-
Save Daejiv/37ed1e00de1e3a300296 to your computer and use it in GitHub Desktop.
Core/Network: Fixup invalid socket access after move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 865cc63fa76e39c7d305786fcfb2e83f16703873 Mon Sep 17 00:00:00 2001 | |
From: Daejiv <daejiv@googlemail.com> | |
Date: Thu, 7 Aug 2014 14:40:46 +0200 | |
Subject: [PATCH] Core/Network: Fixup invalid socket access after move | |
Closes: #12800 | |
--- | |
src/server/shared/Networking/Socket.h | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/src/server/shared/Networking/Socket.h b/src/server/shared/Networking/Socket.h | |
index 4f0630d..6bf67e0 100644 | |
--- a/src/server/shared/Networking/Socket.h | |
+++ b/src/server/shared/Networking/Socket.h | |
@@ -39,8 +39,8 @@ class Socket : public std::enable_shared_from_this<T> | |
public: | |
Socket(tcp::socket&& socket, std::size_t headerSize) : _socket(std::move(socket)), _headerSize(headerSize) | |
{ | |
- _remotePort = socket.remote_endpoint().port(); | |
- _remoteAddress = socket.remote_endpoint().address(); | |
+ _remotePort = _socket.remote_endpoint().port(); | |
+ _remoteAddress = _socket.remote_endpoint().address(); | |
} | |
virtual void Start() = 0; | |
-- | |
1.8.4.msysgit.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment