Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
mbedtls
Commits
236ea16c
Commit
236ea16c
authored
Dec 12, 2018
by
Hanno Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong conditional in free() functions
parent
e463c429
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
library/chachapoly.c
library/chachapoly.c
+1
-1
library/poly1305.c
library/poly1305.c
+1
-1
No files found.
library/chachapoly.c
View file @
236ea16c
...
...
@@ -108,7 +108,7 @@ void mbedtls_chachapoly_init( mbedtls_chachapoly_context *ctx )
void
mbedtls_chachapoly_free
(
mbedtls_chachapoly_context
*
ctx
)
{
if
(
ctx
!
=
NULL
)
if
(
ctx
=
=
NULL
)
return
;
mbedtls_chacha20_free
(
&
ctx
->
chacha20_ctx
);
...
...
library/poly1305.c
View file @
236ea16c
...
...
@@ -289,7 +289,7 @@ void mbedtls_poly1305_init( mbedtls_poly1305_context *ctx )
void
mbedtls_poly1305_free
(
mbedtls_poly1305_context
*
ctx
)
{
if
(
ctx
!
=
NULL
)
if
(
ctx
=
=
NULL
)
return
;
mbedtls_platform_zeroize
(
ctx
,
sizeof
(
mbedtls_poly1305_context
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment