svn commit: r258835 - user/ae/inet6/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Mon Dec 2 06:09:53 UTC 2013


Author: ae
Date: Mon Dec  2 06:09:52 2013
New Revision: 258835
URL: http://svnweb.freebsd.org/changeset/base/258835

Log:
  Return a more appropriate error code.

Modified:
  user/ae/inet6/sys/netinet6/nd6.c

Modified: user/ae/inet6/sys/netinet6/nd6.c
==============================================================================
--- user/ae/inet6/sys/netinet6/nd6.c	Mon Dec  2 05:57:09 2013	(r258834)
+++ user/ae/inet6/sys/netinet6/nd6.c	Mon Dec  2 06:09:52 2013	(r258835)
@@ -2209,7 +2209,7 @@ nd6_storelladdr(struct ifnet *ifp, struc
 			LLE_RUNLOCK(ln);
 		/* this could happen, if we could not allocate memory */
 		m_freem(m);
-		return (1);
+		return (EHOSTUNREACH);
 	}
 
 	bcopy(&ln->ll_addr, desten, ifp->if_addrlen);


More information about the svn-src-user mailing list