From ce29c8e7ec91d95167b2dea3aee9fd1ae1aac254 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 19 Dec 2016 02:47:42 +0000 Subject: Wrap all sodium/nacl functions in crypto_core.c. --- toxcore/friend_requests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/friend_requests.c') diff --git a/toxcore/friend_requests.c b/toxcore/friend_requests.c index f0281d3a..a2979b46 100644 --- a/toxcore/friend_requests.c +++ b/toxcore/friend_requests.c @@ -96,7 +96,7 @@ int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk) for (i = 0; i < MAX_RECEIVED_STORED; ++i) { if (id_equal(fr->received_requests[i], real_pk)) { - sodium_memzero(fr->received_requests[i], crypto_box_PUBLICKEYBYTES); + crypto_memzero(fr->received_requests[i], CRYPTO_PUBLIC_KEY_SIZE); return 0; } } -- cgit v1.2.3