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
OpenSSL: fix reload of changed OCSP proof
[exim.git]
/
src
/
src
/
tls.c
diff --git
a/src/src/tls.c
b/src/src/tls.c
index 76e72b5f58a10f3da1bc0b5afd70d21428b8d545..d7cefce677c19cf33e0693aada28a3ce1332aaca 100644
(file)
--- a/
src/src/tls.c
+++ b/
src/src/tls.c
@@
-156,7
+156,7
@@
for (unsigned loop = 20;
if (--loop == 0) { errno = ELOOP; return FALSE; }
filename = buf[0] == '/'
? string_copyn(buf, (unsigned)len) /* mem released by tls_set_watch */
if (--loop == 0) { errno = ELOOP; return FALSE; }
filename = buf[0] == '/'
? string_copyn(buf, (unsigned)len) /* mem released by tls_set_watch */
- : string_sprintf("%.*s/%.*s", (int)(s - filename),
(int)len
);
+ : string_sprintf("%.*s/%.*s", (int)(s - filename),
filename, (int)len, buf
);
s = Ustrrchr(filename, '/');
}
if (errno != EINVAL)
s = Ustrrchr(filename, '/');
}
if (errno != EINVAL)
@@
-361,6
+361,8
@@
tls_watch_invalidate();
#endif
tls_server_creds_invalidate();
#endif
tls_server_creds_invalidate();
+
+/* _expire is for a time-limited selfsign server cert */
tls_creds_expire = (lifetime = tls_server_creds_init())
? time(NULL) + lifetime : 0;
tls_creds_expire = (lifetime = tls_server_creds_init())
? time(NULL) + lifetime : 0;