Mercurial > pidgin
changeset 24087:40a4e02027f4
shuffle some code around to make sure are using the right errno,
References #7032
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Thu, 11 Sep 2008 04:19:37 +0000 |
parents | ad88d875cdd8 |
children | 147ada94a1d8 ec85a522b455 23f7321b8291 |
files | libpurple/protocols/msn/soap.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c Wed Sep 10 21:59:38 2008 +0000 +++ b/libpurple/protocols/msn/soap.c Thu Sep 11 04:19:37 2008 +0000 @@ -284,6 +284,11 @@ count += cnt; g_string_append_len(conn->buf, buf, cnt); } + + perrno = errno; + if (cnt < 0 && perrno != EAGAIN) + purple_debug_info("soap", "read: %s\n", g_strerror(perrno)); + #ifndef MSN_UNSAFE_DEBUG if (conn->current_request->secure) purple_debug_misc("soap", "Received secure request.\n"); @@ -299,11 +304,9 @@ return; /* msn_soap_process could alter errno */ - perrno = errno; msn_soap_process(conn); if (cnt < 0 && perrno != EAGAIN) { - purple_debug_info("soap", "read: %s\n", g_strerror(perrno)); /* It's possible msn_soap_process closed the ssl connection */ if (conn->ssl) { purple_ssl_close(conn->ssl);