Date: Sat, 30 Oct 2010 10:28:33 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r214547 - stable/8/lib/libc/net Message-ID: <201010301028.o9UASXA2091326@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Sat Oct 30 10:28:33 2010 New Revision: 214547 URL: http://svn.freebsd.org/changeset/base/214547 Log: MFC r213403: Clear errno for each method dispatch. Modified: stable/8/lib/libc/net/nsdispatch.c Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/locale/ (props changed) stable/8/lib/libc/stdtime/ (props changed) stable/8/lib/libc/sys/ (props changed) Modified: stable/8/lib/libc/net/nsdispatch.c ============================================================================== --- stable/8/lib/libc/net/nsdispatch.c Sat Oct 30 04:53:50 2010 (r214546) +++ stable/8/lib/libc/net/nsdispatch.c Sat Oct 30 10:28:33 2010 (r214547) @@ -707,11 +707,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010301028.o9UASXA2091326>