<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 25, 2014, at 4:23 PM, Arnaud Quette wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">gen-snmp-subdriver.sh simply hasn't done its job, for some reasons.</div></div><div class="gmail_extra">well, 1 clear is that's it not a completed effort... at all<br>
</div><div class="gmail_extra">but, still IIRC, it should have produced at least a bit more<br></div></div></blockquote><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">Hi Arnaud,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I may not have been specific enough in my description.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The crash that Jason saw is with the version of snmp-ups that is currently in Git - including the new 'xppc' MIB, but the NULL pointer in question is also in 'delta_ups'.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Given that mib2nut[i]->oid_auto_check is only used for the "classic" OID check, I think we can just add a special case to check for NULL, and continue the loop if oid_auto_check has not been provided.</div><div class="gmail_extra"><br></div></div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">@Jason: how have you called the script?<br clear="all"></div>
<div class="gmail_extra">could you please also send an archive including:<br></div><div class="gmail_extra">- the results of the adapted commands on #L73, #L74<br><a href="https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh">https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh</a><br>
</div><div class="gmail_extra">- your mib file<br></div></div></blockquote></div><div><br></div>Jason,<div><br></div><div>this would still be useful to address the issue of gen-snmp-subdriver not parsing things correctly.</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>