Hi, ucd-snmp develerpers.
 
I Found out bug in the ucd-snmp 4.2.6 and net-snmp 5.1.1
 
I have tested for smux moudule with zebra-0.94.
 
If I do snmp-set String object with NULL value. net-snmp is down.
 
I fixed this case as follows...
 
source: agent/mibgoup/smux/smux.c : 375 : var_smux_write()
 
....
 
if( var_val == NULL ) var_len = 2;                // add by me
else                                                          // 
    var_len += (*(val_val + 1) ....
....
 
In case of value is NULL, val_val is also NULL.
then (*(val_val +1)) statement point to null.
 
--------------------------------------------------------------
p.s.
 
I have a question.
When I used to ucd-snmp 4.2.6,  I added only "smux peer  1.3.6.1.4.1.10000  test"  in the snmpd.conf.
but  In case of net-snmp 5.1.1, I can't accept snmpd deamon and fail authentication.
 
To solve this problem, I omited auttentication.- smux_auth_peer() return 1.
 
How can I authenticate smux peer in the netsnmp 5.1.1. ?
 
 
 
 
 
 
-----------------------------------------------------------------------------------
Address304, GayangTechno-Town, 1487, Gayang3-Dong, Gangseo-Gu,
                Seoul(157-810), Republic of Korea
E-Mail: [EMAIL PROTECTED] ,
        [EMAIL PROTECTED] (E-MAIL & MSN)
Phone: +82-2-2657-0977(Dir), +82-2-2657-0999(FAX)
         +82-17-382-9396(Cell)
-----------------------------------------------------------------------------------
 

Reply via email to