/pidgin/main: 932b985540e9: CID 732047 Negative array index write
Daniel Atallah
datallah at pidgin.im
Tue Jan 28 10:38:08 EST 2014
Changeset: 932b985540e9f32dd852daab76f06d8f7ef91ccd
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2013-03-16 14:05 -0400
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/932b985540e9
Description:
CID 732047 Negative array index write
diffstat:
libpurple/stun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/stun.c b/libpurple/stun.c
--- a/libpurple/stun.c
+++ b/libpurple/stun.c
@@ -175,7 +175,7 @@ static void reply_cb(gpointer data, gint
struct sockaddr_in *sinptr;
len = recv(source, buffer, sizeof(buffer) - 1, 0);
- if (!len) {
+ if (len < 0) {
purple_debug_warning("stun", "unable to read stun response\n");
return;
}
More information about the Commits
mailing list