mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
ftp-client: Restrict to TCP connections.
* guix/ftp-client.scm (ftp-open): Force SOCK_STREAM as the socket type to avoid calling 'connect' on a datagram socket.
This commit is contained in:
parent
8b341eb05d
commit
279ec1df20
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ (define addresses
|
|||
|
||||
(let loop ((addresses addresses))
|
||||
(let* ((ai (car addresses))
|
||||
(s (socket (addrinfo:fam ai) (addrinfo:socktype ai)
|
||||
(s (socket (addrinfo:fam ai) SOCK_STREAM ;TCP only
|
||||
(addrinfo:protocol ai))))
|
||||
|
||||
(catch 'system-error
|
||||
|
|
Loading…
Reference in a new issue