diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-08-09 09:23:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-08-09 09:23:43 +0200 |
commit | e6d195fbe36c5cbe260877ed06265437d8fd0ff9 (patch) | |
tree | a14dc9f0522c17491e5180a3cfda23edb3dc1325 /src/socket.c | |
parent | 8b1eb11ac25fd06101212eb7be40c18574ed52d6 (diff) | |
download | gnutls-e6d195fbe36c5cbe260877ed06265437d8fd0ff9.tar.gz |
danetool: improvements in information presentation
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 4 |
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; |