1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-12 14:38:31 -05:00
curl/lib/vtls
Daniel Gustafsson 2873971d62 memory: ensure to check allocation results
The result of a memory allocation should always be checked, as we may
run under memory pressure where even a small allocation can fail. This
adds checking and error handling to a few cases where the allocation
wasn't checked for success. In the ftp case, the freeing of the path
variable is moved ahead of the allocation since there is little point
in keeping it around across the strdup, and the separation makes for
more readable code. In nwlib, the lock is aslo freed in the error path.

Also bumps the copyright years on affected files.

Closes #3084
Reviewed-by: Jay Satiro <raysatiro@yahoo.com>
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2018-10-03 23:45:38 +02:00
..
axtls.c axtls: follow-up spell fix of comment 2018-06-02 13:40:41 +02:00
axtls.h whitespace fixes 2018-09-23 22:24:02 +00:00
cyassl.c wolfSSL/CyaSSL: Fix memory leak in Curl_cyassl_random 2018-07-26 16:21:59 +02:00
cyassl.h
darwinssl.c vtls: fix ssl version "or later" behavior change for many backends 2018-09-20 14:12:25 -04:00
darwinssl.h
gskit.c vtls: fix ssl version "or later" behavior change for many backends 2018-09-20 14:12:25 -04:00
gskit.h
gtls.c GnutTLS: TLS 1.3 support 2018-09-21 09:13:33 +02:00
gtls.h
mbedtls.c vtls: fix ssl version "or later" behavior change for many backends 2018-09-20 14:12:25 -04:00
mbedtls.h
mesalink.c vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00
mesalink.h vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00
nss.c nss: fix nssckbi module loading on Windows 2018-10-03 02:28:09 -04:00
nssg.h
openssl.c openssl: load built-in engines too 2018-09-24 16:36:31 +02:00
openssl.h
polarssl_threadlock.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
polarssl_threadlock.h
polarssl.c vtls: fix ssl version "or later" behavior change for many backends 2018-09-20 14:12:25 -04:00
polarssl.h
schannel_verify.c memory: ensure to check allocation results 2018-10-03 23:45:38 +02:00
schannel.c vtls: fix ssl version "or later" behavior change for many backends 2018-09-20 14:12:25 -04:00
schannel.h boringssl + schannel: undef X509_NAME in lib/schannel.h 2018-06-08 23:25:17 +02:00
vtls.c vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00
vtls.h vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00