svn commit: r214549 - stable/7/lib/libc/net

Hajimu UMEMOTO ume at FreeBSD.org
Sat Oct 30 10:37:11 UTC 2010


Author: ume
Date: Sat Oct 30 10:37:11 2010
New Revision: 214549
URL: http://svn.freebsd.org/changeset/base/214549

Log:
  MFC r213403: Clear errno for each method dispatch.

Modified:
  stable/7/lib/libc/net/nsdispatch.c
Directory Properties:
  stable/7/lib/libc/   (props changed)
  stable/7/lib/libc/stdtime/   (props changed)

Modified: stable/7/lib/libc/net/nsdispatch.c
==============================================================================
--- stable/7/lib/libc/net/nsdispatch.c	Sat Oct 30 10:30:49 2010	(r214548)
+++ stable/7/lib/libc/net/nsdispatch.c	Sat Oct 30 10:37:11 2010	(r214549)
@@ -673,11 +673,13 @@ _nsdispatch(void *retval, const ns_dtab 
 				va_end(ap);
 			} else {
 				cache_flag = 0;
+				errno = 0;
 				va_start(ap, defaults);
 				result = method(retval, mdata, ap);
 				va_end(ap);
 			}
 #else /* NS_CACHING */
+			errno = 0;
 			va_start(ap, defaults);
 			result = method(retval, mdata, ap);
 			va_end(ap);


More information about the svn-src-stable-7 mailing list