ok, no one should be using v1 or v2c any more, and certainly they shouldn't be using the less efficient forward encoding too. And we now have proof that no one uses both...
Thanks to Aleksandr Lomanov for pointing it out. I'd like to include this in 5.4.1.rc3. Index: snmp_api.c =================================================================== --- snmp_api.c (revision 16583) +++ snmp_api.c (working copy) @@ -3036,7 +3036,7 @@ DEBUGDUMPHEADER("send", "SNMP Version Number"); version = pdu->version; - cp = asn_build_int(*pkt, pkt_len, + cp = asn_build_int(cp, pkt_len, (u_char) (ASN_UNIVERSAL | ASN_PRIMITIVE | ASN_INTEGER), (long *) &version, sizeof(version)); @@ -3048,7 +3048,7 @@ * store the community string */ DEBUGDUMPHEADER("send", "Community String"); - cp = asn_build_string(*pkt, pkt_len, + cp = asn_build_string(cp, pkt_len, (u_char) (ASN_UNIVERSAL | ASN_PRIMITIVE | ASN_OCTET_STR), pdu->community, pdu->community_len); -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders