diff options
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; |