summaryrefslogtreecommitdiff
path: root/source/n/net-snmp/net-snmp-5.8-agentx-disconnect-crash.patch
blob: da8431355b8013ac2cee33663dfc25d3d0d0130c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -urNp a/agent/mibgroup/agentx/master.c b/agent/mibgroup/agentx/master.c
--- a/agent/mibgroup/agentx/master.c	2018-07-18 12:13:49.953014652 +0200
+++ b/agent/mibgroup/agentx/master.c	2018-07-18 12:20:23.537626773 +0200
@@ -221,7 +221,7 @@ agentx_got_response(int operation,
         /* response is too late, free the cache */
         if (magic)
             netsnmp_free_delegated_cache((netsnmp_delegated_cache*) magic);
-        return 0;
+        return 1;
     }
     requests = cache->requests;