pacify mdoclink

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12331 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-05-26 21:56:28 +00:00
parent ea7714fd49
commit cb584f6348
13 changed files with 236 additions and 12 deletions

View File

@@ -333,9 +333,15 @@ krb5_sendto (krb5_context context,
continue;
for (a = ai; a != NULL; a = a->ai_next) {
int flag;
fd = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
if (fd < 0)
continue;
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
close(fd);
continue;
}
if (connect (fd, a->ai_addr, a->ai_addrlen) < 0) {
close (fd);
continue;