Query about ERR_OID_ADMIN_ZERO (last subidentifier assigned to ... may not be zero)

Hi,
Running smilint (0.4.8) over a MIB definition file I'm responsible for maintining, provoked this error output:
<filename>:<linenum>: [1] last subidentifier assigned to `national' may not be zero
The source file had, at that point: ::= { iso member-body(2) gb(826) national(0) eng-ltd(1) <etc> }
Looking at http://www.oid-info.com/get/1.2.826.0.1 shows that this appears to be perfectly legal though.
I found that by changing the source to ::= { iso member-body(2) gb(826) 0 eng-ltd(1) <etc> }
the error was suppressed, but IMO this is a bug in parser-smi.c (lines 976 & following), not in my MIB.
Thoughts?

On Thu, Apr 16, 2009 at 12:17:49PM +0200, Martin wrote:
Running smilint (0.4.8) over a MIB definition file I'm responsible for maintining, provoked this error output:
<filename>:<linenum>: [1] last subidentifier assigned to `national' may not be zero
The source file had, at that point: ::= { iso member-body(2) gb(826) national(0) eng-ltd(1) <etc> }
Looking at http://www.oid-info.com/get/1.2.826.0.1 shows that this appears to be perfectly legal though.
The attached patch seems to fix this issue.
/js
participants (2)
-
Juergen Schoenwaelder
-
Martin