fix sysctl support
authorFlorian Westphal <fw@strlen.de>
Fri, 10 Apr 2009 21:20:25 +0200
changeset 5 41d4fc0fdd98
parent 4 863921423b7d
child 6 b4128f070989
fix sysctl support
nsc/sysctl.c
--- a/nsc/sysctl.c	Thu Apr 09 12:41:33 2009 +0200
+++ b/nsc/sysctl.c	Fri Apr 10 21:20:25 2009 +0200
@@ -281,7 +281,7 @@
     if (ret == 0) {
       ret = nsc_linux_sysctl_map[i].convert_r(buf, buflen, value, len);
       if (ret > 0)
-        return 0;
+        return ret;
     }
     
     return -1;