Commit 34fd83d0 authored by Olivier Crête's avatar Olivier Crête

tcp-bsd: Don't clear error that hasn't been set

parent 2ed34261
......@@ -391,8 +391,7 @@ socket_send_more (
}
if (ret < 0) {
if (gerr != NULL &&
g_error_matches (gerr, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) {
if (g_error_matches (gerr, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) {
GOutputVector local_buf = { tbs->buf, tbs->length };
NiceOutputMessage local_message = {&local_buf, 1};
......@@ -401,7 +400,7 @@ socket_send_more (
g_error_free (gerr);
break;
}
g_error_free (gerr);
g_clear_error (&gerr);
} else if (ret < (int) tbs->length) {
GOutputVector local_buf = { tbs->buf + ret, tbs->length - ret };
NiceOutputMessage local_message = {&local_buf, 1};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment