1 Index: libtirpc-0.2.1/src/getrpcport.c
2 ===================================================================
3 --- libtirpc-0.2.1.orig/src/getrpcport.c
4 +++ libtirpc-0.2.1/src/getrpcport.c
5 @@ -54,11 +54,11 @@ getrpcport(host, prognum, versnum, proto
7 if ((hp = gethostbyname(host)) == NULL)
9 + if (hp->h_length != sizeof(addr.sin_addr.s_addr))
11 memset(&addr, 0, sizeof(addr));
12 addr.sin_family = AF_INET;
14 - if (hp->h_length > sizeof(addr))
15 - hp->h_length = sizeof(addr);
16 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
17 /* Inconsistent interfaces need casts! :-( */
18 return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum,