Module Name: src Committed By: roy Date: Mon Jun 8 07:59:54 UTC 2015
Modified Files: src/sys/netinet: in_selsrc.c Log Message: Don't set errno. Thanks to skrll@ To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/netinet/in_selsrc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet/in_selsrc.c diff -u src/sys/netinet/in_selsrc.c:1.12 src/sys/netinet/in_selsrc.c:1.13 --- src/sys/netinet/in_selsrc.c:1.12 Sat May 2 14:41:32 2015 +++ src/sys/netinet/in_selsrc.c Mon Jun 8 07:59:54 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: in_selsrc.c,v 1.12 2015/05/02 14:41:32 roy Exp $ */ +/* $NetBSD: in_selsrc.c,v 1.13 2015/06/08 07:59:54 roy Exp $ */ /*- * Copyright (c) 2005 David Young. All rights reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: in_selsrc.c,v 1.12 2015/05/02 14:41:32 roy Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in_selsrc.c,v 1.13 2015/06/08 07:59:54 roy Exp $"); #include "opt_inet.h" #include "opt_inet_conf.h" @@ -369,10 +369,8 @@ in_getifa(struct ifaddr *ifa, const stru } ia = (struct in_ifaddr *)best_ifa; - if (ia->ia4_flags & IN_IFF_NOTREADY) { - errno = EADDRNOTAVAIL; + if (ia->ia4_flags & IN_IFF_NOTREADY) return NULL; - } #ifdef GETIFA_DEBUG if (in_selsrc_debug) {