diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-11-05 21:28:47 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-11-05 21:28:47 +0000 |
commit | d138bfd3b42780fe30830af97fc4d393c225871d (patch) | |
tree | 4570ea1e8533ced13a8aca008f7a121e3fad8d6d /lib/gnutls_mem.c | |
parent | d490dcdc70bc21da7d49abd3c33236b2236db1cf (diff) | |
download | gnutls-d138bfd3b42780fe30830af97fc4d393c225871d.tar.gz |
receive buffer is now dynamic.
Diffstat (limited to 'lib/gnutls_mem.c')
-rw-r--r-- | lib/gnutls_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_mem.c b/lib/gnutls_mem.c index 6401684784..9cde853528 100644 --- a/lib/gnutls_mem.c +++ b/lib/gnutls_mem.c @@ -107,6 +107,7 @@ void *gnutls_realloc(void *_ptr, size_t size) void *gnutls_realloc_fast(void *ptr, size_t size) { + if (ptr != NULL && size <= _gnutls_malloc_ptr_size(ptr)) { /* do nothing, just return the pointer. * It's much faster. |