Mercurial > pidgin.yaz
diff src/protocols/msn/httpconn.c @ 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 | 8754a0fe2297 |
children | 4279e5b5e9ac |
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)