git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cac0350
)
Fix use of unintialized variable
author
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 20 Feb 2019 16:12:16 +0000
(16:12 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 20 Feb 2019 16:13:54 +0000
(16:13 +0000)
Broken-by: c05bdbd6fc
src/src/expand.c
patch
|
blob
|
history
diff --git
a/src/src/expand.c
b/src/src/expand.c
index 14d7ce451471a8d734311c565360c16ac437e3bb..d395436fa8ab1410ed428fdbd87d5238ea46d954 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-5120,7
+5120,7
@@
while (*s != 0)
reqstr.data);
if ( (
#ifdef SUPPORT_TLS
reqstr.data);
if ( (
#ifdef SUPPORT_TLS
-
cctx.tls_ctx
? tls_write(cctx.tls_ctx, reqstr.data, reqstr.len, FALSE) :
+
do_tls
? tls_write(cctx.tls_ctx, reqstr.data, reqstr.len, FALSE) :
#endif
write(cctx.sock, reqstr.data, reqstr.len)) != reqstr.len)
{
#endif
write(cctx.sock, reqstr.data, reqstr.len)) != reqstr.len)
{
@@
-5135,7
+5135,7
@@
while (*s != 0)
system doesn't have this function, make it conditional. */
#ifdef SHUT_WR
system doesn't have this function, make it conditional. */
#ifdef SHUT_WR
- if (!
cctx.tls_ctx
&& do_shutdown) shutdown(cctx.sock, SHUT_WR);
+ if (!
do_tls
&& do_shutdown) shutdown(cctx.sock, SHUT_WR);
#endif
if (f.running_in_test_harness) millisleep(100);
#endif
if (f.running_in_test_harness) millisleep(100);
@@
-5143,19
+5143,19
@@
while (*s != 0)
/* Now we need to read from the socket, under a timeout. The function
that reads a file can be used. */
/* Now we need to read from the socket, under a timeout. The function
that reads a file can be used. */
- if (!
cctx.tls_ctx
)
+ if (!
do_tls
)
fp = fdopen(cctx.sock, "rb");
sigalrm_seen = FALSE;
ALARM(timeout);
yield =
#ifdef SUPPORT_TLS
fp = fdopen(cctx.sock, "rb");
sigalrm_seen = FALSE;
ALARM(timeout);
yield =
#ifdef SUPPORT_TLS
-
cctx.tls_ctx
? cat_file_tls(cctx.tls_ctx, yield, sub_arg[3]) :
+
do_tls
? cat_file_tls(cctx.tls_ctx, yield, sub_arg[3]) :
#endif
cat_file(fp, yield, sub_arg[3]);
ALARM_CLR(0);
#ifdef SUPPORT_TLS
#endif
cat_file(fp, yield, sub_arg[3]);
ALARM_CLR(0);
#ifdef SUPPORT_TLS
- if (
cctx.tls_ctx
)
+ if (
do_tls
)
{
tls_close(cctx.tls_ctx, TRUE);
close(cctx.sock);
{
tls_close(cctx.tls_ctx, TRUE);
close(cctx.sock);