Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/crypto/dist/heimdal/lib/roken Initialize socket hint ty...



details:   https://anonhg.NetBSD.org/src/rev/e378f9c7d45d
branches:  netbsd-1-5
changeset: 489197:e378f9c7d45d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Aug 22 14:54:57 2000 +0000

description:
Initialize socket hint type to SOCK_DGRAM before calling getaddrinfo().
Similiar fix is in -current, but it involves a changed library interface,
so this is to avoid having to pull that up and get confusing library
versions.

Fixes first part of bin/10878.

diffstat:

 crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 72a0f970a070 -r e378f9c7d45d crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c
--- a/crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c      Tue Aug 22 07:53:07 2000 +0000
+++ b/crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c      Tue Aug 22 14:54:57 2000 +0000
@@ -33,7 +33,7 @@
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
-RCSID("$Id: getaddrinfo_hostspec.c,v 1.1.1.1 2000/06/16 18:32:37 thorpej Exp $");
+RCSID("$Id: getaddrinfo_hostspec.c,v 1.1.1.1.2.1 2000/08/22 14:54:57 fvdl Exp $");
 #endif
 
 #include "roken.h"
@@ -65,6 +65,8 @@
     };
 
     memset(&hints, 0, sizeof(hints));
+
+    hints.ai_socktype = SOCK_DGRAM;
        
     for(hstp = hst; hstp->prefix; hstp++) {
        if(strncmp(hostspec, hstp->prefix, strlen(hstp->prefix)) == 0) {



Home | Main Index | Thread Index | Old Index