From c773e8c87a44d70937a150554b625ee2d148b1a8 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 25 Nov 2011 11:50:28 +0000 Subject: [PATCH] fix a bug in handling "accept" for crypto connections git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11568 d7cf8633-e32d-0410-b094-e92efae38249 --- crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.c b/crypto.c index 2847e048..e503102e 100644 --- a/crypto.c +++ b/crypto.c @@ -2017,7 +2017,7 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out, { int wantserverid = -1; Crypto_RetrieveHostKey(&cls.connect_address, &wantserverid, NULL, 0, NULL, 0, NULL); - //if(!crypto || !crypto->authenticated) + if(!crypto || !crypto->authenticated) // we ALSO get here if we are using an encrypted connection, so let's rule this out { if(wantserverid >= 0) return Crypto_ClientError(data_out, len_out, "Server tried an unauthenticated connection even though a host key is present"); -- 2.39.2