projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use app_malloc; two missing cases.
[openssl.git]
/
apps
/
s_client.c
diff --git
a/apps/s_client.c
b/apps/s_client.c
index 42ef049d24879d91660ac7574891ab466b2951fd..fada838b68bf7210d2c0fa450c29e3801b25acd0 100644
(file)
--- a/
apps/s_client.c
+++ b/
apps/s_client.c
@@
-509,7
+509,7
@@
static ossl_ssize_t hexdecode(const char **inptr, void *result)
{
unsigned char **out = (unsigned char **)result;
const char *in = *inptr;
- unsigned char *ret =
OPENSSL_malloc(strlen(in)/2
);
+ unsigned char *ret =
app_malloc(strlen(in)/2, "hexdecode"
);
unsigned char *cp = ret;
uint8_t byte;
int nibble = 0;