]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Kill more unreachable code.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Feb 2015 12:24:22 +0000 (12:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Feb 2015 12:24:22 +0000 (12:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12146 d7cf8633-e32d-0410-b094-e92efae38249

crypto.c

index ebb78d2e9b44ecad65877a0eed2bd9c78f37cb07..8428c6784c483e44e6070b286e334734e9490ec2 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -2315,7 +2315,7 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out,
                                CDATA->next_step = 1;
                                *len_out = data_out_p - data_out;
                        }
-                       else if(clientid >= 0)
+                       else // if(clientid >= 0) // guaranteed by condition one level outside
                        {
                                // skip over server auth, perform client auth only
                                if(!CDATA->id)
@@ -2339,8 +2339,6 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out,
                                data_out_p += *len_out;
                                *len_out = data_out_p - data_out;
                        }
-                       else
-                               *len_out = data_out_p - data_out;
 
                        return CRYPTO_DISCARD;
                }