summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-09 09:23:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-09 09:23:43 +0200
commite6d195fbe36c5cbe260877ed06265437d8fd0ff9 (patch)
treea14dc9f0522c17491e5180a3cfda23edb3dc1325 /src/socket.c
parent8b1eb11ac25fd06101212eb7be40c18574ed52d6 (diff)
downloadgnutls-e6d195fbe36c5cbe260877ed06265437d8fd0ff9.tar.gz
danetool: improvements in information presentation
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index 1b2d851bec..ca38027f51 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -150,7 +150,9 @@ socket_open(socket_st * hd, const char *hostname, const char *service,
char buffer[MAX_BUF + 1];
char portname[16] = { 0 };
- printf("Resolving '%s'...\n", hostname);
+ if (msg != NULL)
+ printf("Resolving '%s'...\n", hostname);
+
/* get server name */
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;