PERFORCE change 95795 for review

soc-bushman soc-bushman at FreeBSD.org
Fri Apr 21 12:27:12 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=95795

Change 95795 by soc-bushman at soc-bushman_stinger on 2006/04/21 12:26:05

	return value bug fixed in gethostnamadr.c + getaddrinfo.c style fix

Affected files ...

.. //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/getaddrinfo.c#12 edit
.. //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/gethostnamadr.c#10 edit

Differences ...

==== //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/getaddrinfo.c#12 (text+ko) ====

@@ -1604,7 +1604,7 @@
 
 static int 
 addrinfo_marshal_func(char *buffer, size_t *buffer_size, void *retval, 
-	va_list ap,	void *cache_mdata)
+	va_list ap, void *cache_mdata)
 {
 	struct addrinfo	*ai, *cai;
 	char *p;

==== //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/gethostnamadr.c#10 (text+ko) ====

@@ -420,6 +420,8 @@
 		for (iter = ht->h_addr_list; *iter; ++iter)
 			NS_APPLY_OFFSET(*iter, orig_buf, p, char *);
 	}
+	
+	*((struct hostent **)retval) = ht;
 	return (NS_SUCCESS);
 }
 #endif /* NS_CACHING */


More information about the p4-projects mailing list