Permalink
Browse files

explicitly specify IPPROTO_UDP.

  • Loading branch information...
1 parent aaf5027 commit bda4983d3127174e9a3694fff2932cc77782078f itojun committed May 7, 2003
Showing with 2 additions and 1 deletion.
  1. +2 −1 kame/kame/libinet6/resolv/res_init.c
View
3 kame/kame/libinet6/resolv/res_init.c
@@ -55,7 +55,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
-static char rcsid[] = "$Id: res_init.c,v 1.12 2001/07/18 08:47:11 itojun Exp $";
+static char rcsid[] = "$Id: res_init.c,v 1.13 2003/05/07 01:24:53 itojun Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -356,6 +356,7 @@ res_init()
memset(&hints, 0, sizeof(hints));
hints.ai_flags = AI_NUMERICHOST;
hints.ai_socktype = SOCK_DGRAM;
+ hints.ai_protocol = IPPROTO_UDP;
snprintf(pbuf, sizeof(pbuf), "%d", NAMESERVER_PORT);
if (getaddrinfo(cp, pbuf, &hints, &res) == 0 &&
res->ai_next == NULL) {

0 comments on commit bda4983

Please sign in to comment.