[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_3_1_5-18-g18065c0
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_3_1_5-18-g18065c0 |
Date: |
Mon, 26 Nov 2012 22:34:57 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=18065c003ee2d9f61da4b920b7d8a13e8ba064cc
The branch, master has been updated
via 18065c003ee2d9f61da4b920b7d8a13e8ba064cc (commit)
from da01538e01938e1f2196c389ff1dcde7c3cfcdb9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 18065c003ee2d9f61da4b920b7d8a13e8ba064cc
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Mon Nov 26 22:55:53 2012 +0100
corrected socket loop. Based on patch by Mantas Mikulenas.
-----------------------------------------------------------------------
Summary of changes:
src/socket.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/socket.c b/src/socket.c
index f901482..20c366f 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -156,8 +156,7 @@ socket_open (socket_st * hd, const char *hostname, const
char *service, int udp)
NI_NUMERICHOST | NI_NUMERICSERV)) != 0)
{
fprintf (stderr, "getnameinfo(): %s\n", gai_strerror (err));
- freeaddrinfo (res);
- exit (1);
+ continue;
}
if (hints.ai_socktype == SOCK_DGRAM)
@@ -176,18 +175,21 @@ socket_open (socket_st * hd, const char *hostname, const
char *service, int udp)
}
- printf ("Connecting to '%s:%s'...\n", hostname, portname);
+ printf ("Connecting to '%s:%s'...\n", buffer, portname);
err = connect (sd, ptr->ai_addr, ptr->ai_addrlen);
if (err < 0)
{
- fprintf (stderr, "Cannot connect to %s:%s: %s\n", hostname,
+ fprintf (stderr, "Cannot connect to %s:%s: %s\n", buffer,
portname, strerror (errno));
- exit (1);
+ continue;
}
break;
}
+ if (err != 0)
+ exit(1);
+
if (sd == -1)
{
fprintf (stderr, "Could not find a supported socket\n");
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_3_1_5-18-g18065c0,
Nikos Mavrogiannopoulos <=