]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated some example and the server to use the new gnutls_malloc() in callbacks.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 13 Dec 2002 12:59:17 +0000 (12:59 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 13 Dec 2002 12:59:17 +0000 (12:59 +0000)
doc/tex/ex-serv-export.tex
src/serv.c

index c4f2eb542e500aeff345718c8a91b47517a12de9..65d7bc3b53120cf9f86679a343b4363d1e3d5e05 100644 (file)
@@ -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;
 
index 63b1ac35321809fdd3a11e03c376b7a5ee5965e9..c657901a5cbd99b0d868819e0088075ee451ea44 100644 (file)
@@ -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;