[quagga-dev 4401] Re: Segfault in lib/smux.c

Pierre-Yves Ritschard pierre-yves at spootnik.org
Tue Sep 26 11:25:15 BST 2006


>
>>  /* Generic trap integer. */
>>  val = SNMP_TRAP_ENTERPRISESPECIFIC;
>>  ptr = asn_build_int (ptr, &len,
>>                    (u_char)(ASN_UNIVERSAL | ASN_PRIMITIVE |
>> ASN_INTEGER),
>>                    &val, sizeof (int));
>

Ok I read the code in net-snmp and as it happens, asn_build_int checks the
fifth parameter against sizeof(long), so that's what made quagga segfault.
I'll submit a patch shortly



More information about the Quagga-dev mailing list