From 2c965eee9101599fb390fa2391df8722ccb65e24 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 22 Jul 2015 14:42:44 -0700 Subject: [PATCH] fix ugly deref of matchingPeer --- ice-server/src/IceServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ice-server/src/IceServer.cpp b/ice-server/src/IceServer.cpp index 5da906a1f3..0545e0d274 100644 --- a/ice-server/src/IceServer.cpp +++ b/ice-server/src/IceServer.cpp @@ -89,7 +89,7 @@ void IceServer::processPacket(std::unique_ptr packet) { qDebug() << "Sending information for peer" << connectRequestID << "to peer" << senderUUID; // we have the peer they want to connect to - send them pack the information for that peer - sendPeerInformationPacket(*(matchingPeer.data()), &packet->getSenderSockAddr()); + sendPeerInformationPacket(*matchingPeer, &packet->getSenderSockAddr()); // we also need to send them to the active peer they are hoping to connect to // create a dummy peer object we can pass to sendPeerInformationPacket