[PATCH] correctly handle the object not found case
Nicolas Sitbon
nsitbon at denyall.com
Fri Mar 25 10:07:23 EDT 2011
---
lib/error.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/error.c b/lib/error.c
index a31461e..b973cdd 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -88,6 +88,7 @@ int nl_syserr2nlerr(int error)
case EADDRINUSE: return NLE_EXIST;
case EEXIST: return NLE_EXIST;
case EADDRNOTAVAIL: return NLE_NOADDR;
+ case ESRCH: /* fall through */
case ENOENT: return NLE_OBJ_NOTFOUND;
case EINTR: return NLE_INTR;
case EAGAIN: return NLE_AGAIN;
--
1.6.0.4
--------------050703060205090501000809--
More information about the libnl
mailing list