Fixed
Showing
2 changed files
with
12 additions
and
3 deletions
... | @@ -389,8 +389,10 @@ pop3d_mainloop (int fd, FILE *infile, FILE *outfile) | ... | @@ -389,8 +389,10 @@ pop3d_mainloop (int fd, FILE *infile, FILE *outfile) |
389 | } | 389 | } |
390 | 390 | ||
391 | #ifdef WITH_TLS | 391 | #ifdef WITH_TLS |
392 | pop3d_deinit_tls_server (); | 392 | if (tls_done) |
393 | mu_deinit_tls_libs (); | 393 | pop3d_deinit_tls_server (); |
394 | if (tls_available) | ||
395 | mu_deinit_tls_libs (); | ||
394 | #endif /* WITH_TLS */ | 396 | #endif /* WITH_TLS */ |
395 | 397 | ||
396 | return (status != OK); | 398 | return (status != OK); | ... | ... |
... | @@ -180,8 +180,10 @@ extern char *md5shared; | ... | @@ -180,8 +180,10 @@ extern char *md5shared; |
180 | extern volatile size_t children; | 180 | extern volatile size_t children; |
181 | extern struct daemon_param daemon_param; | 181 | extern struct daemon_param daemon_param; |
182 | extern int debug_mode; | 182 | extern int debug_mode; |
183 | #ifdef WITH_TLS | ||
183 | extern int tls_available; | 184 | extern int tls_available; |
184 | extern int tls_done; | 185 | extern int tls_done; |
186 | #endif /* WITH_TLS */ | ||
185 | 187 | ||
186 | extern int pop3d_abquit __P ((int)); | 188 | extern int pop3d_abquit __P ((int)); |
187 | extern int pop3d_apop __P ((const char *)); | 189 | extern int pop3d_apop __P ((const char *)); |
... | @@ -215,5 +217,10 @@ extern char *pop3d_readline __P ((char *, size_t)); | ... | @@ -215,5 +217,10 @@ extern char *pop3d_readline __P ((char *, size_t)); |
215 | extern void pop3d_flush_output __P ((void)); | 217 | extern void pop3d_flush_output __P ((void)); |
216 | 218 | ||
217 | extern int pop3d_is_master __P ((void)); | 219 | extern int pop3d_is_master __P ((void)); |
218 | 220 | ||
221 | #ifdef WITH_TLS | ||
222 | extern int pop3d_init_tls_server __P ((void)); | ||
223 | extern void pop3d_deinit_tls_server __P ((void)); | ||
224 | #endif /* WITH_TLS */ | ||
225 | |||
219 | #endif /* _POP3D_H */ | 226 | #endif /* _POP3D_H */ | ... | ... |
-
Please register or sign in to post a comment