mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 23:15:37 +00:00
Merge branch 'master' into fix-unused-args
This commit is contained in:
commit
a8e0bc2fb1
@ -8,6 +8,7 @@ with newer versions.
|
||||
|
||||
* [Enter new changes just after this line - do not remove this line]
|
||||
* Fixed bug with unused arguments in sockets.c
|
||||
* Fixed bug with dangling pointer in snmp_traps.c
|
||||
* The eth_addr_cmp and ip_addr_cmp set of functions have been renamed to eth_addr_eq, ip_addr_eq
|
||||
and so on, since they return non-zero on equality. Macros for the old names exist.
|
||||
* The sio_write function used by PPP now takes the data argument as const.
|
||||
|
@ -343,6 +343,7 @@ snmp_send_msg(struct snmp_msg_trap *trap_msg, struct snmp_varbind *varbinds, u16
|
||||
* and .iso.org.dod.internet.private.enterprises.yourenterprise
|
||||
* (sysObjectID) for specific traps.
|
||||
*/
|
||||
struct snmp_varbind snmp_copy;
|
||||
static err_t
|
||||
snmp_send_trap_or_notification_or_inform_generic(struct snmp_msg_trap *trap_msg, const struct snmp_obj_id *eoid, s32_t generic_trap, s32_t specific_trap, struct snmp_varbind *varbinds)
|
||||
{
|
||||
@ -398,7 +399,8 @@ snmp_send_trap_or_notification_or_inform_generic(struct snmp_msg_trap *trap_msg,
|
||||
snmp_v2_special_varbinds[1].value = snmp_trap_oid.id;
|
||||
if (varbinds != NULL) {
|
||||
original_prev = varbinds->prev;
|
||||
varbinds->prev = &snmp_v2_special_varbinds[1];
|
||||
memcpy(&snmp_copy, &snmp_v2_special_varbinds[1], sizeof(snmp_v2_special_varbinds[1]));
|
||||
varbinds->prev = &snmp_copy;
|
||||
}
|
||||
varbinds = snmp_v2_special_varbinds; /* After inserting two varbinds at the beginning of the list, make sure that pointer is pointing to the first element */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user