smilint crash when INTGER values are equal

BUG DEFINITIONS ::= BEGIN IMPORTS private, MODULE-IDENTITY, OBJECT-TYPE, Integer32, Unsigned32, Counter32, Counter64, Gauge32, IpAddress FROM SNMPv2-SMI;
top MODULE-IDENTITY LAST-UPDATED "" ORGANIZATION "" CONTACT-INFO "" DESCRIPTION "" ::= { private 2 }
obj OBJECT-TYPE SYNTAX INTEGER {blue(1),yellow(1),green(1)} MAX-ACCESS read-create STATUS current DESCRIPTION "" ::= { top 1 }
END
The above MIB gives a segmentation violation with smilint. With just two symbols defined for 'obj', it gives the expected warning: bug.mib:16: redefinition of number `1' in number enumeration

On Thu, Jan 31, 2008 at 12:44:24PM +0100, Arndt Jonasson wrote:
[...]
The above MIB gives a segmentation violation with smilint. With just two symbols defined for 'obj', it gives the expected warning: bug.mib:16: redefinition of number `1' in number enumeration
I have committed a patch (SVN r7640) which seems to fix this problem.
/js
participants (2)
-
Arndt Jonasson
-
Juergen Schoenwaelder