Fix a segfault in the Yahoo! module.

Reported by:	Kenneth W Cochran <kwc@TheWorld.com>
Obtained from:	gaim CVS
This commit is contained in:
Joe Marcus Clarke 2002-10-13 06:58:21 +00:00
parent b1d5674a07
commit 0bd1d15402
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67953
6 changed files with 39 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= gaim
PORTVERSION= 0.59.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,12 @@
--- src/protocols/yahoo/yahoo.c.orig Sun Oct 13 02:50:25 2002
+++ src/protocols/yahoo/yahoo.c Sun Oct 13 02:50:58 2002
@@ -525,6 +525,9 @@
l = l->next;
}
+ if (!msg)
+ return;
+
if (!g_strncasecmp(msg, "TYPING", strlen("TYPING"))) {
if (*stat == '1')
serv_got_typing(gc, from, 0);

View File

@ -7,7 +7,7 @@
PORTNAME= gaim
PORTVERSION= 0.59.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,12 @@
--- src/protocols/yahoo/yahoo.c.orig Sun Oct 13 02:50:25 2002
+++ src/protocols/yahoo/yahoo.c Sun Oct 13 02:50:58 2002
@@ -525,6 +525,9 @@
l = l->next;
}
+ if (!msg)
+ return;
+
if (!g_strncasecmp(msg, "TYPING", strlen("TYPING"))) {
if (*stat == '1')
serv_got_typing(gc, from, 0);

View File

@ -7,7 +7,7 @@
PORTNAME= gaim
PORTVERSION= 0.59.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

12
net/gaim/files/patch-temp Normal file
View File

@ -0,0 +1,12 @@
--- src/protocols/yahoo/yahoo.c.orig Sun Oct 13 02:50:25 2002
+++ src/protocols/yahoo/yahoo.c Sun Oct 13 02:50:58 2002
@@ -525,6 +525,9 @@
l = l->next;
}
+ if (!msg)
+ return;
+
if (!g_strncasecmp(msg, "TYPING", strlen("TYPING"))) {
if (*stat == '1')
serv_got_typing(gc, from, 0);