]> git.puffer.fish Git - mirror/frr.git/commit
[snmp] Fix asn_build calls to pass correct variable sizes (fixes 64-bit issues)
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 26 Sep 2006 15:30:43 +0000 (15:30 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 26 Sep 2006 15:30:43 +0000 (15:30 +0000)
commit965b83f9cc287ca36f5a4152c2ac39007c5bc6d8
tree1cfc447235d86ce273d37078d44da82ead4fd39d
parent08c8367197cb847eb88942e5d7273cf3352d967f
[snmp] Fix asn_build calls to pass correct variable sizes (fixes 64-bit issues)

2006-09-26 Pierre-Yves Ritschard <pierre-yves@spootnik.org>

* smux.c: (smux_open,smux_trap,smux_register) Fix various
  asn_build_* calls to pass the proper length in the final
  argument: use sizeof(<variable>) instead of sizeof(<type>),
  since there were several inconsistencies between the actual
  variable type and the size that was passed.  This should
  fix some problems on 64-bit architectures where sizeof(int)
  != sizeof(long).
lib/ChangeLog
lib/smux.c