(util_set_input, util_set_output): Bugfix
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -471,7 +471,7 @@ imap4d_readline (void) | ... | @@ -471,7 +471,7 @@ imap4d_readline (void) |
471 | } | 471 | } |
472 | else if (rc) | 472 | else if (rc) |
473 | { | 473 | { |
474 | const char *p; | 474 | char *p; |
475 | if (stream_strerror (istream, &p)) | 475 | if (stream_strerror (istream, &p)) |
476 | p = strerror (errno); | 476 | p = strerror (errno); |
477 | 477 | ||
... | @@ -1113,7 +1113,7 @@ void | ... | @@ -1113,7 +1113,7 @@ void |
1113 | util_set_input (stream_t str) | 1113 | util_set_input (stream_t str) |
1114 | { | 1114 | { |
1115 | if (istream) | 1115 | if (istream) |
1116 | stream_destroy (istream, stream_get_owner (istream)); | 1116 | stream_destroy (&istream, stream_get_owner (istream)); |
1117 | istream = str; | 1117 | istream = str; |
1118 | } | 1118 | } |
1119 | 1119 | ||
... | @@ -1121,7 +1121,7 @@ void | ... | @@ -1121,7 +1121,7 @@ void |
1121 | util_set_output (stream_t str) | 1121 | util_set_output (stream_t str) |
1122 | { | 1122 | { |
1123 | if (ostream) | 1123 | if (ostream) |
1124 | stream_destroy (ostream, stream_get_owner (ostream)); | 1124 | stream_destroy (&ostream, stream_get_owner (ostream)); |
1125 | ostream = str; | 1125 | ostream = str; |
1126 | } | 1126 | } |
1127 | 1127 | ||
... | @@ -1188,7 +1188,7 @@ imap4d_init_tls_server () | ... | @@ -1188,7 +1188,7 @@ imap4d_init_tls_server () |
1188 | 1188 | ||
1189 | if (stream_open (stream)) | 1189 | if (stream_open (stream)) |
1190 | { | 1190 | { |
1191 | const char *p; | 1191 | char *p; |
1192 | stream_strerror (stream, &p); | 1192 | stream_strerror (stream, &p); |
1193 | syslog (LOG_ERR, _("cannot open TLS stream: %s"), p); | 1193 | syslog (LOG_ERR, _("cannot open TLS stream: %s"), p); |
1194 | return 0; | 1194 | return 0; | ... | ... |
-
Please register or sign in to post a comment