Fixed a spelling problem in a log message.

This commit is contained in:
Robert James Kaes 2001-10-23 16:43:08 +00:00
parent 98ffd0a3fe
commit 7d7958b0d7

View File

@ -1,4 +1,4 @@
/* $Id: sock.c,v 1.11 2001-10-23 03:57:34 rjkaes Exp $ /* $Id: sock.c,v 1.12 2001-10-23 16:43:08 rjkaes Exp $
* *
* Sockets are created and destroyed here. When a new connection comes in from * Sockets are created and destroyed here. When a new connection comes in from
* a client, we need to copy the socket and the create a second socket to the * a client, we need to copy the socket and the create a second socket to the
@ -166,7 +166,7 @@ char *getpeer_ip(int fd, char *ipaddr)
*ipaddr = '\0'; *ipaddr = '\0';
if (getpeername(fd, (struct sockaddr*)&name, &namelen) != 0) { if (getpeername(fd, (struct sockaddr*)&name, &namelen) != 0) {
log_message(LOG_ERR, "geetpeer_ip: 'could not get peer's IP address' (\"%s\": %d)", strerror(errno), errno); log_message(LOG_ERR, "getpeer_ip: 'could not get peer's IP address' (\"%s\": %d)", strerror(errno), errno);
} else { } else {
strlcpy(ipaddr, strlcpy(ipaddr,
inet_ntoa(*(struct in_addr*)&name.sin_addr.s_addr), inet_ntoa(*(struct in_addr*)&name.sin_addr.s_addr),