Mercurial > pidgin
changeset 13277:2a9580fc922b
[gaim-migrate @ 15643]
Richard Nelson noticed that this comparison was potentially problematic due to signedness issues.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 13 Feb 2006 20:06:09 +0000 |
parents | d6a799421657 |
children | c7cf6912c982 |
files | src/protocols/msn/httpconn.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/httpconn.c Mon Feb 13 18:14:14 2006 +0000 +++ b/src/protocols/msn/httpconn.c Mon Feb 13 20:06:09 2006 +0000 @@ -162,7 +162,7 @@ msn_servconn_got_error(httpconn->servconn, MSN_SERVCONN_ERROR_WRITE); return -1; - } else if (res < data_len) { + } else if (res < 0 || res < data_len) { if (res < 0) res = 0; if (httpconn->tx_handler == -1)