Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > c0394d3068b44395994f031447c8052d > files > 4

net-snmp-5.3.2.2-7.el5_4.2.src.rpm

--- net-snmp-5.0.8/agent/snmp_agent.c.readonly	2003-08-05 14:55:44.000000000 +0200
+++ net-snmp-5.0.8/agent/snmp_agent.c	2003-08-06 16:05:56.000000000 +0200
@@ -1133,6 +1133,12 @@
     int             i, n = 0, r = 0;
 
     /*
+     * Update asp->status if necessary. Fixes ro/rw problem.
+     */
+    if ( status != 0  && asp->status == 0 )
+          asp->status = status;
+
+    /*
      * if this request was a set, clear the global now that we are
      * done.
      */