peer: fix compare of hostname for uds

Unix domain socket paths need to be compared case-senstive, in contrast
to DNS hostnames.

Follow-up to bc40e09f63889a8bc14fa8f7221921

Pointed out by Codex Security

Closes #21511
1 file changed
tree: 09c15e22f3e1817a32c57741a790b8c36e732f1d
  1. .circleci/
  2. .github/
  3. CMake/
  4. docs/
  5. include/
  6. lib/
  7. LICENSES/
  8. m4/
  9. projects/
  10. scripts/
  11. src/
  12. tests/
  13. .clang-tidy.yml
  14. .dir-locals.el
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .mailmap
  20. acinclude.m4
  21. appveyor.sh
  22. appveyor.yml
  23. CHANGES.md
  24. CMakeLists.txt
  25. configure.ac
  26. COPYING
  27. curl-config.in
  28. Dockerfile
  29. GIT-INFO.md
  30. libcurl.pc.in
  31. Makefile.am
  32. README
  33. README.md
  34. RELEASE-NOTES
  35. renovate.json
  36. REUSE.toml
  37. SECURITY.md
README.md

curl logo

curl is a command-line tool for transferring data from or to a server using URLs. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, MQTTS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.

Learn how to use curl by reading the man page or everything curl.

Find out how to install curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl man page to learn how.

Open Source

curl is Open Source and is distributed under an MIT-like license.

Contact

Contact us on a suitable mailing list or use GitHub issues/ pull requests/ discussions.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Source code

Download the latest source from the Git server:

git clone https://github.com/curl/curl

Security problems

Report suspected security problems privately and not in public.

Backers

Thank you to all our backers :pray: Become a backer.

Sponsors

Support this project by becoming a sponsor.