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

Pierre-Yves Ritschard pierre-yves at spootnik.org
Tue Sep 26 11:38:28 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
>
The attached patch solves the problem with smux, I'm left with another
segfault now, but I'll write a different email describing it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quagga_lib_smux.patch
Type: application/octet-stream
Size: 769 bytes
Desc: not available
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20060926/ac9aef7b/attachment-0001.obj>


More information about the Quagga-dev mailing list