diff options
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 | ||