curl/lib
Daniel Stenberg 355f4144df
cf-socket: skip getpeername()/getsockname for TFTP
Since the socket is not connected then the call fails. When the call
fails, failf() is called to write an error message that is then
surviving and is returned when the *real* error occurs later. The
earlier, incorrect, error therefore hides the actual error message.

This could be seen in stderr for test 1007

Test 1007 has now been extended to verify the stderr message.

Closes #11332
2023-06-19 09:39:49 +02:00
..
vauth misc: fix spelling mistakes 2023-05-23 10:42:09 +02:00
vquic lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
vssh lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
vtls vtls: fix potentially uninitialized local variable warnings 2023-06-13 08:29:25 +02:00
.checksrc
.gitattributes
.gitignore
altsvc.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
altsvc.h
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c
asyn-thread.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
asyn.h
base64.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
bufq.c bufq: make write/pass methods more robust 2023-06-05 20:11:41 +02:00
bufq.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
bufref.c
bufref.h
c-hyper.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
c-hyper.h
cf-h1-proxy.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
cf-h1-proxy.h proxy: http2 proxy tunnel implementation 2023-04-06 13:04:46 +02:00
cf-h2-proxy.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
cf-h2-proxy.h proxy: http2 proxy tunnel implementation 2023-04-06 13:04:46 +02:00
cf-haproxy.c haproxy: add --haproxy-clientip flag to spoof client IPs 2023-06-05 20:08:37 +02:00
cf-haproxy.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
cf-https-connect.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
cf-https-connect.h lib: give source files cf-http.* better fitting names 2023-03-02 08:48:34 +01:00
cf-socket.c cf-socket: skip getpeername()/getsockname for TFTP 2023-06-19 09:39:49 +02:00
cf-socket.h cf-socket: restore Curl_sock_assign_addr() 2023-05-25 14:34:39 +02:00
cfilters.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
cfilters.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
CMakeLists.txt cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
config-amigaos.h amiga: Fix CA certificate paths for AmiSSL and MorphOS 2023-05-01 14:08:55 -04:00
config-dos.h config-dos.h: fix SIZEOF_CURL_OFF_T for MS-DOS/DJGPP 2023-04-08 23:53:50 +02:00
config-mac.h
config-os400.h
config-plan9.h
config-riscos.h
config-win32.h build: fix stdint/inttypes detection with non-autotools 2023-03-13 10:47:21 +00:00
config-win32ce.h
conncache.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
conncache.h lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
connect.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
connect.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
content_encoding.c content_encoding: only do tranfer-encoding compression if asked to 2023-04-07 13:39:20 +02:00
content_encoding.h
cookie.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
cookie.h cookie: update the comment on cookie length and size limits 2023-05-18 20:43:25 +02:00
curl_addrinfo.c misc: fix spelling mistakes 2023-05-23 10:42:09 +02:00
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake build: drop unused/redundant HAVE_WINLDAP_H 2023-06-05 16:31:38 +00:00
curl_ctype.h urlapi: avoid Curl_dyn_addf() for hex outputs 2023-02-01 23:05:51 +01:00
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c gssapi: align global gss_OID_desc vars to silence ld warnings on macOS ventura 2023-03-10 08:04:42 +01:00
curl_gssapi.h
curl_hmac.h
curl_krb5.h
curl_ldap.h
curl_log.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
curl_log.h lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
curl_md4.h
curl_md5.h
curl_memory.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm_core.c openssl: interop with AWS-LC 2023-03-30 10:56:14 +02:00
curl_ntlm_core.h tls: fixes for wolfssl + openssl combo builds 2023-02-01 09:47:16 +00:00
curl_ntlm_wb.c
curl_ntlm_wb.h
curl_path.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
curl_path.h
curl_printf.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
curl_range.c
curl_range.h
curl_rtmp.c lib: unify the upload/method handling 2023-04-25 12:38:38 +02:00
curl_rtmp.h
curl_sasl.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
curl_sasl.h
curl_setup_once.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
curl_setup.h cf-socket: completely remove the disabled USE_RECV_BEFORE_SEND_WORKAROUND 2023-05-18 20:55:16 +02:00
curl_sha256.h
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
dict.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
dict.h
doh.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
doh.h
dynbuf.c dynbuf: never allocate larger than "toobig" 2023-03-28 10:22:53 +02:00
dynbuf.h
dynhds.c lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
dynhds.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
easy_lock.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
easy.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
easygetopt.c
easyif.h Websocket en-/decoding 2023-04-25 23:16:51 +02:00
easyoptions.c haproxy: add --haproxy-clientip flag to spoof client IPs 2023-06-05 20:08:37 +02:00
easyoptions.h
escape.c escape: use table lookup when adding %-codes to output 2023-01-31 22:42:21 +01:00
escape.h
file.c lib: unify the upload/method handling 2023-04-25 12:38:38 +02:00
file.h
fileinfo.c ftplistparser: replace realloc with dynbuf 2023-03-28 10:11:33 +02:00
fileinfo.h ftplistparser: replace realloc with dynbuf 2023-03-28 10:11:33 +02:00
fopen.c fopen: fix conversion warning on 32-bit Android 2023-06-14 09:31:47 +02:00
fopen.h
formdata.c
formdata.h
ftp.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
ftp.h ftp: add more conditions for connection reuse 2023-03-13 09:07:23 +01:00
ftplistparser.c ftplistparser: replace realloc with dynbuf 2023-03-28 10:11:33 +02:00
ftplistparser.h wildcard: remove files and move functions into ftplistparser.c 2023-03-03 23:25:30 +01:00
functypes.h
getenv.c
getinfo.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
getinfo.h
gopher.c
gopher.h
hash.c hash: fix assigning same value 2023-04-14 09:26:26 +02:00
hash.h
headers.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
headers.h
hmac.c
hostasyn.c hostip: avoid sscanf and extra buffer copies 2023-02-27 20:43:13 +01:00
hostip4.c
hostip6.c
hostip.c lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
hostip.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
hostsyn.c
hsts.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
hsts.h
http1.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
http1.h lib: rename struct 'http_req' to 'httpreq' 2023-05-20 23:03:01 +02:00
http2.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
http2.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
http_aws_sigv4.c checksrc: fix SPACEBEFOREPAREN for conditions starting with "*" 2023-04-27 17:24:47 +02:00
http_aws_sigv4.h
http_chunks.c
http_chunks.h
http_digest.c
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c
http_ntlm.h
http_proxy.c http_proxy: provide missing arg to infof() call 2023-04-07 23:48:38 +02:00
http_proxy.h CURLPROXY_HTTPS2: for HTTPS proxy that may speak HTTP/2 2023-04-08 00:27:53 +02:00
http.c http: rectify the outgoing Cookie: header field size check 2023-06-18 11:07:23 +02:00
http.h lib: rename struct 'http_req' to 'httpreq' 2023-05-20 23:03:01 +02:00
idn.c idn: return error if the conversion ends up with a blank host 2023-02-27 15:12:29 +01:00
idn.h
if2ip.c
if2ip.h
imap.c imap: Provide method to disable SASL if it is advertised 2023-06-15 21:31:02 -04:00
imap.h
inet_ntop.c checksrc: find bad indentation in conditions without open brace 2023-04-28 23:11:00 +02:00
inet_ntop.h
inet_pton.c urlapi: parse IPv6 literals without ENABLE_IPV6 2023-03-03 10:05:08 +01:00
inet_pton.h
krb5.c krb5: avoid sscanf for parsing 2023-02-24 17:24:01 +01:00
ldap.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
libcurl.plist.in
libcurl.rc
libcurl.vers.in
llist.c
llist.h
Makefile.am
Makefile.inc cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
Makefile.mk Makefile.mk: fix -g option in debug mode [ci skip] 2023-03-13 00:16:30 +00:00
Makefile.soname
md4.c md(4|5): don't use deprecated iOS functions 2023-05-13 09:57:54 +02:00
md5.c md(4|5): don't use deprecated iOS functions 2023-05-13 09:57:54 +02:00
memdebug.c
memdebug.h
mime.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
mime.h
mprintf.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
mqtt.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
mqtt.h
multi.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
multihandle.h multi: remove PENDING + MSGSENT handles from the main linked list 2023-03-26 17:43:28 +02:00
multiif.h
netrc.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
netrc.h
nonblock.c
nonblock.h
noproxy.c noproxy: pointer to local array 'hostip' is stored outside scope 2023-04-12 09:00:20 +02:00
noproxy.h
openldap.c checksrc: find bad indentation in conditions without open brace 2023-04-28 23:11:00 +02:00
optiontable.pl easyoptions: Fix header printing in generation script 2023-01-12 14:59:38 +01:00
parsedate.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
parsedate.h
pingpong.c pingpong: fix compiler warning "assigning an enum to unsigned char" 2023-04-28 13:38:21 +02:00
pingpong.h
pop3.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
pop3.h
progress.c misc: remove support for curl_off_t < 8 bytes 2023-02-24 17:05:33 +01:00
progress.h connections: introduce http/3 happy eyeballs 2023-02-02 09:57:34 +01:00
psl.c
psl.h
rand.c socketpair: verify with a random value 2023-04-25 17:40:15 +02:00
rand.h
rename.c
rename.h
rtsp.c lib: unify the upload/method handling 2023-04-25 12:38:38 +02:00
rtsp.h rtsp: convert mallocs to dynbuf for RTP buffering 2023-04-04 14:44:25 +02:00
select.c select: avoid returning an error on EINTR from select() or poll() 2023-05-19 16:16:26 +02:00
select.h
sendf.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
sendf.h cf-socket: improvements in socket I/O handling 2023-01-31 11:23:59 +01:00
setopt.c haproxy: add --haproxy-clientip flag to spoof client IPs 2023-06-05 20:08:37 +02:00
setopt.h
setup-os400.h os400: correct Curl_os400_sendto() 2023-02-17 14:49:51 +01:00
setup-vms.h
setup-win32.h
sha256.c lib/sha256.c: typo fix in comment (duplicated "is available") 2023-03-28 17:52:41 +02:00
share.c
share.h
sigpipe.h multi: make multi_perform ignore/unignore signals less often 2023-03-13 23:01:02 +01:00
slist.c
slist.h
smb.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
smb.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
smtp.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
smtp.h
sockaddr.h
socketpair.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
socketpair.h
socks_gssapi.c cf-socket: improvements in socket I/O handling 2023-01-31 11:23:59 +01:00
socks_sspi.c cf-socket: improvements in socket I/O handling 2023-01-31 11:23:59 +01:00
socks.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
socks.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
speedcheck.c
speedcheck.h
splay.c
splay.h
strcase.c
strcase.h
strdup.c
strdup.h
strerror.c checksrc: check for spaces before the colon of switch labels 2023-04-27 23:26:50 +02:00
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
system_win32.c
system_win32.h
telnet.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
telnet.h
tftp.c lib: unify the upload/method handling 2023-04-25 12:38:38 +02:00
tftp.h
timediff.c
timediff.h
timeval.c timeval: use CLOCK_MONOTONIC_RAW if available 2023-06-13 00:02:32 +02:00
timeval.h
transfer.c lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
transfer.h
url.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
url.h lib: remove unused functions, make single-use static 2023-05-23 11:08:51 +02:00
urlapi-int.h urlapi: make internal function start with Curl_ 2023-04-27 08:36:51 +02:00
urlapi.c curl_url_set: enforce the max string length check for all parts 2023-06-08 23:40:08 +02:00
urldata.h lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID 2023-06-12 23:53:00 +02:00
version_win32.c
version_win32.h
version.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
warnless.c cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
warnless.h cmake: add support for "unity" builds 2023-06-07 13:06:08 +00:00
ws.c lib: fix some format specifiers 2023-06-17 01:38:04 -04:00
ws.h Websocket en-/decoding 2023-04-25 23:16:51 +02:00