1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 19:45:04 -05:00
curl/lib/vauth
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
..
cleartext.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
cram.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
digest_sspi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
digest.c memory: ensure to check allocation results 2018-10-03 23:45:38 +02:00
digest.h auth: add support for RFC7616 - HTTP Digest access authentication 2017-10-28 16:32:43 +02:00
krb5_gssapi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
krb5_sspi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
ntlm_sspi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
ntlm.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
ntlm.h vauth/ntlm.h: fix the #ifdef header guard 2018-03-20 15:00:09 +01:00
oauth2.c internals: rename the SessionHandle struct to Curl_easy 2016-06-22 10:28:41 +02:00
spnego_gssapi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
spnego_sspi.c comment: Fix multiple typos in function parameters 2018-10-03 10:27:27 +02:00
vauth.c vauth: Fix typo 2018-04-15 03:25:48 -04:00
vauth.h ntlm_sspi: fix authentication using Credential Manager 2018-04-16 20:43:21 +02:00