]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - crypto.c
fix two seriously wrong memset calls possibly causing crypto connections to fail...
[xonotic/darkplaces.git] / crypto.c
index dd7fc885585efcc17ba814697d0f0244a1db251d..30b9bd86ab21cb384c5ffce3415d4e0ef8706829 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -545,7 +545,7 @@ qboolean Crypto_ServerFinishInstance(crypto_t *out, crypto_t *crypto)
        }
        CLEAR_CDATA;
        memcpy(out, crypto, sizeof(*out));
-       memset(crypto, 0, sizeof(crypto));
+       memset(crypto, 0, sizeof(*crypto));
        return true;
 }