Commit Diff


commit - d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15
commit + b1d38de4d23e78ec27c11277a007c202e3edcd38
blob - d6542e23528ab48920ca787ddaa0de5140d21264
blob + 4772fd34628b660f8f517fcb1edc30515b0c283e
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -415,11 +415,13 @@ NewListener(int af, const UINT16 Port)
 
 	set_v6_only(af, sock);
 
-	if( ! Init_Socket( sock )) return -1;
+	if (!Init_Socket(sock))
+		return -1;
 
 	if (bind(sock, (struct sockaddr *)&addr, ng_ipaddr_salen(&addr)) != 0) {
-		Log( LOG_CRIT, "Can't bind socket (port %d) : %s!", Port, strerror( errno ));
-		close( sock );
+		Log(LOG_CRIT, "Can't bind socket to address %s:%d - %s",
+			ng_ipaddr_tostr(&addr), Port, strerror(errno));
+		close(sock);
 		return -1;
 	}