me
/
guix
Archived
1
0
Fork 0

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.
master
Ludovic Courtès 2015-11-17 09:38:01 +01:00
parent 3279b7ec47
commit b7f4677999
1 changed files with 3 additions and 2 deletions

View File

@ -140,8 +140,9 @@ TIMEOUT, an ETIMEDOUT error is raised."
(let loop ((addresses addresses))
(let* ((ai (car addresses))
(s (socket (addrinfo:fam ai) SOCK_STREAM ;TCP only
(addrinfo:protocol ai))))
(s (socket (addrinfo:fam ai)
;; TCP/IP only
SOCK_STREAM IPPROTO_IP)))
(catch 'system-error
(lambda ()