mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
apps/smtp: Fix wrong sizeof for memset s->bodydh
Use sizeof(struct smtp_bodydh_state) to zero all fields of s->bodydh. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
64a351cbe0
commit
2c3c578475
@ -1483,7 +1483,7 @@ smtp_send_mail_bodycback(const char *from, const char* to, const char* subject,
|
||||
SMTP_STATE_FREE(s);
|
||||
return ERR_MEM;
|
||||
}
|
||||
memset(s->bodydh, 0, sizeof(struct smtp_bodydh));
|
||||
memset(s->bodydh, 0, sizeof(struct smtp_bodydh_state));
|
||||
/* initialize the structure */
|
||||
s->from = from;
|
||||
len = strlen(from);
|
||||
|
Loading…
Reference in New Issue
Block a user