diff options
Diffstat (limited to 'toxcore/friend_requests.c')
-rw-r--r-- | toxcore/friend_requests.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
96 | 96 | ||
97 | for (i = 0; i < MAX_RECEIVED_STORED; ++i) { | 97 | for (i = 0; i < MAX_RECEIVED_STORED; ++i) { |
98 | if (id_equal(fr->received_requests[i], real_pk)) { | 98 | if (id_equal(fr->received_requests[i], real_pk)) { |
99 | sodium_memzero(fr->received_requests[i], crypto_box_PUBLICKEYBYTES); | 99 | crypto_memzero(fr->received_requests[i], CRYPTO_PUBLIC_KEY_SIZE); |
100 | return 0; | 100 | return 0; |
101 | } | 101 | } |
102 | } | 102 | } |