diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-02-17 03:16:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-02-17 03:16:16 +0000 |
commit | 4d5eaf8d4d803fb7396ffb216d89dde357140cea (patch) | |
tree | 1f13348b3c2115bd67784737d63d2bb6fb11995a /usr.bin | |
parent | a7e24a9530666ebdfe12eec9f647b74da888b4ae (diff) |
Has to be SOCK_STREAM obviously
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rsync/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c index 2a3b470164f..f1c7ded7394 100644 --- a/usr.bin/rsync/socket.c +++ b/usr.bin/rsync/socket.c @@ -1,4 +1,4 @@ -/* $Id: socket.c,v 1.11 2019/02/16 16:52:54 deraadt Exp $ */ +/* $Id: socket.c,v 1.12 2019/02/17 03:16:15 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -114,7 +114,7 @@ inet_resolve(struct sess *sess, const char *host, size_t *sz) memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_UNSPEC; - hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ + hints.ai_socktype = SOCK_STREAM; error = getaddrinfo(host, "rsync", &hints, &res0); |