projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
991ab34
)
small cleanup
author
Felix Morgner
<felix.morgner@gmail.com>
Fri, 6 Feb 2015 12:57:59 +0000
(13:57 +0100)
committer
Felix Morgner
<felix.morgner@gmail.com>
Fri, 6 Feb 2015 12:57:59 +0000
(13:57 +0100)
src/ssli_polarssl.c
patch
|
blob
|
history
diff --git
a/src/ssli_polarssl.c
b/src/ssli_polarssl.c
index df7c0070dcfbbfdd1a2192e1a402ba5ee7ef8665..a36ccb6157aeb13a4d0624410abd932f79ae25e2 100644
(file)
--- a/
src/ssli_polarssl.c
+++ b/
src/ssli_polarssl.c
@@
-265,12
+265,10
@@
SSL_handle_t *SSLi_newconnection(int *fd, bool_t *SSLready)
ssl_session *ssn;
int rc;
- ssl =
malloc(
sizeof(ssl_context));
- ssn =
malloc(
sizeof(ssl_session));
+ ssl =
calloc(1,
sizeof(ssl_context));
+ ssn =
calloc(1,
sizeof(ssl_session));
if (!ssl || !ssn)
Log_fatal("Out of memory");
- memset(ssl, 0, sizeof(ssl_context));
- memset(ssn, 0, sizeof(ssl_session));
rc = ssl_init(ssl);
if (rc != 0 )