diff --git a/wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs b/wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs index 141f1f9af6..7803febc32 100644 --- a/wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs +++ b/wrapper/CSharp/wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs @@ -85,7 +85,6 @@ public static void Main(string[] args) IntPtr ctx; IntPtr ssl; Socket fd; - IntPtr sniHostName; IntPtr arg_sni; /* These paths should be changed for use */ @@ -155,11 +154,6 @@ public static void Main(string[] args) if (haveSNI(args)) { - string sniHostNameString = args[1].Trim(); - sniHostName = Marshal.StringToHGlobalAnsi(sniHostNameString); - - ushort size = (ushort)sniHostNameString.Length; - // Allocating memory and setting SNI arg int test_value = 32; arg_sni = Marshal.AllocHGlobal(sizeof(int));