diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/stuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index c1667261..49797a9d 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -971,7 +971,8 @@ int tobind(char * host, int port) if (!host || host[0] == NULL) servaddr.sin_addr.s_addr = htonl(INADDR_ANY); else if (inet_aton(host, &servaddr.sin_addr) == 0) - err(1, NULL); + perror("inet_aton()"); + exit(1); servaddr.sin_port = htons(port); if( bind(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) < 0 ) { perror("bind()"); |