commit d08a624bcc93496c57c2153a071c44dd8c8ca2a5
Author: Sascha Wildner <[email protected]>
Date: Fri Feb 21 17:30:39 2014 +0100
libc/getaddrinfo: Fix bugs in two early error paths of _dns_getaddrinfo().
We cannot use RES_SET_H_ERRNO() here upon malloc() failure because res is
not yet initialized at this point and RES_SET_H_ERRNO() (aka __h_errno())
would reference it.
Summary of changes:
lib/libc/net/getaddrinfo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d08a624bcc93496c57c2153a071c44dd8c8ca2a5
--
DragonFly BSD source repository