Menu

#2130 wrongLength error in snmpTargetAddrRowStatus

64-bit
closed
agent (1105)
5
2012-11-08
2010-03-18
Cif
No

Managing snmpTargetAddrTable return a wrongLength error when trying to set snmpTargetAddrRowStatus. This happens in 64bit environment because of a wrong var size check due to this line:
if (var_val_len != sizeof(int)) {
on line 1500.

Possible solution:

change int with long like already did for other tables:
if (var_val_len != sizeof(long)) {

Discussion

  • Cif

    Cif - 2010-04-26

    No one has read this yet? It's quite trivial to solve. I did in my custom installation and solve my problem without causing new.

     
  • Jan Safranek

    Jan Safranek - 2010-05-27

    Thanks for the bug report!
    We've fixed the problem in the 5.3.x, 5.4.x and 5.5.x
    code branches and the main development tree,
    so it should be fixed in future releases of the
    Net-SNMP package.

     
  • Jan Safranek

    Jan Safranek - 2010-05-27

    SVN rev. 18888.

     

Log in to post a comment.