Date: Sat, 30 Oct 2010 10:37:11 +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-7@freebsd.org Subject: svn commit: r214549 - stable/7/lib/libc/net Message-ID: <201010301037.o9UAbBFD091872@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010301037.o9UAbBFD091872>