From e741a12a25e6a3be331a5514f6ed0e2b0febc211 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 21 Nov 2018 21:31:18 -0800 Subject: [PATCH] Ensure RemoteAddrString is nulled out just in case LiStopConnection() is called --- src/Connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Connection.c b/src/Connection.c index 0e5b559..6eb9b00 100644 --- a/src/Connection.c +++ b/src/Connection.c @@ -180,6 +180,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre if (StreamConfig.packetSize == 0) { Limelog("Invalid packet size specified\n"); free(RemoteAddrString); + RemoteAddrString = NULL; return -1; } @@ -188,6 +189,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre AppVersionQuad) < 0) { Limelog("Invalid appversion string: %s\n", serverInfo->serverInfoAppVersion); free(RemoteAddrString); + RemoteAddrString = NULL; return -1; }