Mercurial > pidgin
diff src/protocols/msn/notification.c @ 5963:eb336b2c451f
[gaim-migrate @ 6410]
Fixes a possible segfault in the MSN buddy list loading code.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 27 Jun 2003 02:53:12 +0000 |
parents | 115769a4c6fc |
children | a21cf07cd8e1 |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Thu Jun 26 10:13:58 2003 +0000 +++ b/src/protocols/msn/notification.c Fri Jun 27 02:53:12 2003 +0000 @@ -526,6 +526,9 @@ struct buddy *b; MsnUser *user; + if (param_count < 4) + return TRUE; + passport = params[1]; type = params[2]; value = params[3]; @@ -607,7 +610,7 @@ ipg_cmd(MsnServConn *servconn, const char *command, const char **params, size_t param_count) { - GaimConnection *gc = servconn->session->account->gc; + /* GaimConnection *gc = servconn->session->account->gc; */ servconn->parsing_multiline = TRUE; servconn->multiline_type = MSN_MULTILINE_IPG; @@ -830,7 +833,7 @@ not_cmd(MsnServConn *servconn, const char *command, const char **params, size_t param_count) { - GaimConnection *gc = servconn->session->account->gc; + /* GaimConnection *gc = servconn->session->account->gc; */ servconn->parsing_multiline = TRUE; servconn->multiline_type = MSN_MULTILINE_NOT;