Hi!
I figured out that if you have a config that defines a user default
target for a target and a program default target is added and then
removed twice then a crash could result, this is bad.
In order to fix that I suggest that the following patch is added.
/MF
Index: clean/snmplib/snmp_service.c
===================================================================
--- clean.orig/snmplib/snmp_service.c 2006-11-03 01:11:30.000000000 +0100
+++ clean/snmplib/snmp_service.c 2006-11-03 01:11:44.000000000 +0100
@@ -28,6 +28,7 @@
if (run && strcmp(run->application, application) == 0) {
if (run->domain != NULL) {
free (run->domain);
+ run->domain = NULL;
res = 1;
}
} else {
@@ -174,6 +175,7 @@
if (run && i == 0 && strcmp(run->domain, domain) == 0) {
if (run->target != NULL) {
free(run->target);
+ run->target = NULL;
res = 1;
}
} else {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders