summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb9dd34)
raw | patch | inline | side by side (parent: fb9dd34)
author | octo <octo> | |
Mon, 30 Jan 2006 08:38:11 +0000 (08:38 +0000) | ||
committer | octo <octo> | |
Mon, 30 Jan 2006 08:38:11 +0000 (08:38 +0000) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 3a88b60518e49eb3dcb1da456f408c8dc170e238..3fe25fd46274c5d508a4e38b7877dca7640f1a8a 100644 (file)
--- a/src/network.c
+++ b/src/network.c
ai_hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
ai_hints.ai_family = PF_UNSPEC;
ai_hints.ai_socktype = SOCK_DGRAM;
- ai_hints.ai_protocol = IPPROTO_UDP; /* XXX is this right here?!? */
+ ai_hints.ai_protocol = IPPROTO_UDP;
if ((ai_return = getaddrinfo (node, service, &ai_hints, &ai_list)) != 0)
{
if ((fd = network_get_listen_socket ()) < 0)
return (-1);
+ addrlen = sizeof (addr);
if (recvfrom (fd, buffer, BUFF_SIZE, 0, (struct sockaddr *) &addr, &addrlen) == -1)
{
syslog (LOG_ERR, "recvfrom: %s", strerror (errno));