diff options
author | Nils Larsch <nils@openssl.org> | 2007-02-10 10:42:48 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2007-02-10 10:42:48 +0000 |
commit | 15780a1ea03bae4fb6ebf149ec2e291899400163 (patch) | |
tree | 0606dac0fefff9945c300e5d2866e855bef2e396 /ssl/ssl_sess.c | |
parent | 92ada7cc529b08a0c8fc1eb7c2b70f2df4580647 (diff) |
use user-supplied malloc functions for persistent kssl objects
PR: 1467
Submitted by: Andrei Pelinescu-Onciul <andrei@iptel.org>
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r-- | ssl/ssl_sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 658d02d402..e24d92d10c 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -723,7 +723,7 @@ int SSL_set_session(SSL *s, SSL_SESSION *session) if (s->kssl_ctx && !s->kssl_ctx->client_princ && session->krb5_client_princ_len > 0) { - s->kssl_ctx->client_princ = (char *)malloc(session->krb5_client_princ_len + 1); + s->kssl_ctx->client_princ = (char *)OPENSSL_malloc(session->krb5_client_princ_len + 1); memcpy(s->kssl_ctx->client_princ,session->krb5_client_princ, session->krb5_client_princ_len); s->kssl_ctx->client_princ[session->krb5_client_princ_len] = '\0'; |