mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
Merge branch 'master' of git.sv.gnu.org:/srv/git/lwip
This commit is contained in:
commit
13add693db
@ -117,6 +117,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2014-09-03: Simon Goldschmidt
|
||||||
|
* msg_in.c: fixed bug #39355 SNMP Memory Leak in case of error
|
||||||
|
|
||||||
2014-09-02: Simon Goldschmidt
|
2014-09-02: Simon Goldschmidt
|
||||||
* err.h/.c, sockets.c, api_msg.c: fixed bug #43110 call getpeername() before
|
* err.h/.c, sockets.c, api_msg.c: fixed bug #43110 call getpeername() before
|
||||||
listen() will cause a error
|
listen() will cause a error
|
||||||
|
@ -110,6 +110,10 @@ snmp_error_response(struct snmp_msg_pstat *msg_ps, u8_t error)
|
|||||||
struct snmp_varbind *vbi = msg_ps->invb.head;
|
struct snmp_varbind *vbi = msg_ps->invb.head;
|
||||||
struct snmp_varbind *vbo = msg_ps->outvb.head;
|
struct snmp_varbind *vbo = msg_ps->outvb.head;
|
||||||
for (v=0; v<msg_ps->vb_idx; v++) {
|
for (v=0; v<msg_ps->vb_idx; v++) {
|
||||||
|
if (vbi->ident != NULL) {
|
||||||
|
/* free previously allocated value before overwriting the pointer */
|
||||||
|
memp_free(MEMP_SNMP_VALUE, vbi->ident);
|
||||||
|
}
|
||||||
vbi->ident_len = vbo->ident_len;
|
vbi->ident_len = vbo->ident_len;
|
||||||
vbo->ident_len = 0;
|
vbo->ident_len = 0;
|
||||||
vbi->ident = vbo->ident;
|
vbi->ident = vbo->ident;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user