git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check syscall return values.
[exim.git]
/
src
/
src
/
spool_in.c
diff --git
a/src/src/spool_in.c
b/src/src/spool_in.c
index 3c611a505590562efb1b787b2ad09d108ba45532..a546b65216c57bd88c3a4774bfdaf2e9fda10ca5 100644
(file)
--- a/
src/src/spool_in.c
+++ b/
src/src/spool_in.c
@@
-283,10
+283,10
@@
dkim_collect_input = FALSE;
#endif
#ifdef SUPPORT_TLS
#endif
#ifdef SUPPORT_TLS
-tls_certificate_verified = FALSE;
-tls_cipher = NULL;
-tls_peerdn = NULL;
-tls_sni = NULL;
+tls_
in.
certificate_verified = FALSE;
+tls_
in.
cipher = NULL;
+tls_
in.
peerdn = NULL;
+tls_
in.
sni = NULL;
#endif
#ifdef WITH_CONTENT_SCAN
#endif
#ifdef WITH_CONTENT_SCAN
@@
-545,13
+545,13
@@
for (;;)
#ifdef SUPPORT_TLS
case 't':
if (Ustrncmp(p, "ls_certificate_verified", 23) == 0)
#ifdef SUPPORT_TLS
case 't':
if (Ustrncmp(p, "ls_certificate_verified", 23) == 0)
- tls_certificate_verified = TRUE;
+ tls_
in.
certificate_verified = TRUE;
else if (Ustrncmp(p, "ls_cipher", 9) == 0)
else if (Ustrncmp(p, "ls_cipher", 9) == 0)
- tls_cipher = string_copy(big_buffer + 12);
+ tls_
in.
cipher = string_copy(big_buffer + 12);
else if (Ustrncmp(p, "ls_peerdn", 9) == 0)
else if (Ustrncmp(p, "ls_peerdn", 9) == 0)
- tls_peerdn = string_unprinting(string_copy(big_buffer + 12));
+ tls_
in.
peerdn = string_unprinting(string_copy(big_buffer + 12));
else if (Ustrncmp(p, "ls_sni", 6) == 0)
else if (Ustrncmp(p, "ls_sni", 6) == 0)
- tls_sni = string_unprinting(string_copy(big_buffer + 9));
+ tls_
in.
sni = string_unprinting(string_copy(big_buffer + 9));
break;
#endif
break;
#endif
@@
-718,8
+718,8
@@
while ((n = fgetc(f)) != EOF)
int i;
if (!isdigit(n)) goto SPOOL_FORMAT_ERROR;
int i;
if (!isdigit(n)) goto SPOOL_FORMAT_ERROR;
- (void)ungetc(n, f);
-
(void)fscanf(f, "%d%c ", &n, flag)
;
+ if(ungetc(n, f) == EOF || fscanf(f, "%d%c ", &n, flag) == EOF)
+
goto SPOOL_READ_ERROR
;
if (flag[0] != '*') message_size += n; /* Omit non-transmitted headers */
if (read_headers)
if (flag[0] != '*') message_size += n; /* Omit non-transmitted headers */
if (read_headers)