return on the first 0. The other AS_ERR_SOFT cases do the same and ensure
that an ASPATH with an AS_ERR_SOFT is still valid enough for subsequent
manipulation or inspection.
OK benno@
-/* $OpenBSD: util.c,v 1.30 2018/08/10 11:13:01 claudio Exp $ */
+/* $OpenBSD: util.c,v 1.31 2018/08/29 11:43:15 claudio Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
ptr += as_size;
memcpy(&as, ptr, as_size);
if (as == 0)
- return (AS_ERR_SOFT);
+ error = AS_ERR_SOFT;
}
}
return (error); /* aspath is valid but probably not loop free */