Browse Source

Merge pull request #1249 from davidebeatrici/proto-sstp-handleconnection-crash-fix

Cedar/Proto.c: fix crash in ProtoHandleConnection()
Ilya Shipitsin 4 years ago
parent
commit
6ff00f637b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cedar/Proto.c

+ 1 - 1
src/Cedar/Proto.c

@@ -510,7 +510,7 @@ bool ProtoHandleConnection(PROTO *proto, SOCK *sock, const char *protocol)
 				const PROTO_CONTAINER *tmp = LIST_DATA(proto->Containers, i);
 				if (StrCmp(tmp->Name, protocol) == 0)
 				{
-					impl = container->Impl;
+					container = tmp;
 					break;
 				}
 			}