diff options
author | beck <> | 2014-04-17 13:37:50 +0000 |
---|---|---|
committer | beck <> | 2014-04-17 13:37:50 +0000 |
commit | 6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd (patch) | |
tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/bio/bss_log.c | |
parent | 4d13fb9c7b5ac7311d7031173c21ab0121388413 (diff) | |
download | openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.gz openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.bz2 openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.zip |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/bio/bss_log.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 2d38837f9e..cde3c858f1 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
@@ -157,7 +157,7 @@ slg_write(BIO *b, const char *in, int inl) | |||
157 | { 0, "", LOG_ERR } /* The default */ | 157 | { 0, "", LOG_ERR } /* The default */ |
158 | }; | 158 | }; |
159 | 159 | ||
160 | if ((buf = (char *)OPENSSL_malloc(inl + 1)) == NULL) { | 160 | if ((buf = (char *)malloc(inl + 1)) == NULL) { |
161 | return (0); | 161 | return (0); |
162 | } | 162 | } |
163 | strlcpy(buf, in, inl + 1); | 163 | strlcpy(buf, in, inl + 1); |
@@ -169,7 +169,7 @@ slg_write(BIO *b, const char *in, int inl) | |||
169 | 169 | ||
170 | xsyslog(b, priority, pp); | 170 | xsyslog(b, priority, pp); |
171 | 171 | ||
172 | OPENSSL_free(buf); | 172 | free(buf); |
173 | return (ret); | 173 | return (ret); |
174 | } | 174 | } |
175 | 175 | ||