Fix missing check
authorColin Leroy <colin@colino.net>
Thu, 8 Oct 2015 17:22:06 +0000 (19:22 +0200)
committerColin Leroy <colin@colino.net>
Thu, 8 Oct 2015 17:22:06 +0000 (19:22 +0200)
src/send_message.c

index da79f5a..be2733d 100644 (file)
@@ -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);