projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b44c9d
)
Fix missing check
author
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 17:22:06 +0000
(19:22 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 17:22:06 +0000
(19:22 +0200)
src/send_message.c
patch
|
blob
|
history
diff --git
a/src/send_message.c
b/src/send_message.c
index da79f5a82b7cd9e245abf0cedb6d2eca4516cfcf..be2733db001974609163fac85d9be5987e839793 100644
(file)
--- 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);