From: Nikos Mavrogiannopoulos Date: Fri, 13 Dec 2002 12:59:17 +0000 (+0000) Subject: updated some example and the server to use the new gnutls_malloc() in callbacks. X-Git-Tag: gnutls_0_8_0~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7c8047f2a0b890144cd150c33d8eb712fcc6703;p=thirdparty%2Fgnutls.git updated some example and the server to use the new gnutls_malloc() in callbacks. --- diff --git a/doc/tex/ex-serv-export.tex b/doc/tex/ex-serv-export.tex index c4f2eb542e..65d7bc3b53 100644 --- a/doc/tex/ex-serv-export.tex +++ b/doc/tex/ex-serv-export.tex @@ -307,7 +307,7 @@ static gnutls_datum wrap_db_fetch(void *dbf, gnutls_datum key) res.size = cache_db[i].session_data_size; - res.data = malloc(res.size); + res.data = gnutls_malloc(res.size); if (res.data == NULL) return res; diff --git a/src/serv.c b/src/serv.c index 63b1ac3532..c657901a5c 100644 --- a/src/serv.c +++ b/src/serv.c @@ -1058,7 +1058,7 @@ static gnutls_datum wrap_db_fetch(void *dbf, gnutls_datum key) res.size = cache_db[i].session_data_size; - res.data = malloc(res.size); + res.data = gnutls_malloc(res.size); if (res.data == NULL) return res;