ftp-client: Restrict to TCP/IP connections.
Fixes <http://bugs.gnu.org/21925>.
Regression introduced in 279ec1d
.
Reported by Chris Marusich <cmmarusich@gmail.com>.
* guix/ftp-client.scm (ftp-open): Restrict sockets to
SOCK_STREAM/IPPROTO_IP.
This commit is contained in:
parent
3279b7ec47
commit
b7f4677999
|
@ -140,8 +140,9 @@ TIMEOUT, an ETIMEDOUT error is raised."
|
||||||
|
|
||||||
(let loop ((addresses addresses))
|
(let loop ((addresses addresses))
|
||||||
(let* ((ai (car addresses))
|
(let* ((ai (car addresses))
|
||||||
(s (socket (addrinfo:fam ai) SOCK_STREAM ;TCP only
|
(s (socket (addrinfo:fam ai)
|
||||||
(addrinfo:protocol ai))))
|
;; TCP/IP only
|
||||||
|
SOCK_STREAM IPPROTO_IP)))
|
||||||
|
|
||||||
(catch 'system-error
|
(catch 'system-error
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Reference in New Issue