talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 84f1556050df9d3f305b40e49a08e5aed2ff2fc4
parent 8b44c9d2c43aee4bcbbd3718cc52b6861f5223d7
Author: Colin Leroy <colin@colino.net>
Date:   Thu,  8 Oct 2015 19:22:06 +0200

Fix missing check

Diffstat:
Msrc/send_message.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/send_message.c b/src/send_message.c @@ -236,7 +236,10 @@ gint send_message_smtp_full(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp, g return -1; } tmp_msginfo = procheader_parse_stream(fp, flags, TRUE, FALSE); - fseek(fp, fp_pos, SEEK_SET); + if (fseek(fp, fp_pos, SEEK_SET) < 0) { + perror("fseek"); + return -1; + } if (tmp_msginfo && tmp_msginfo->extradata && tmp_msginfo->extradata->resent_from) { strncpy2(spec_from, tmp_msginfo->extradata->resent_from, BUFFSIZE-1);