Mercurial > pidgin.yaz
comparison src/server.c @ 5728:4115f24e6e24
[gaim-migrate @ 6152]
Fixed a comparison on passwords that causes a crash for NULL passwords.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 04 Jun 2003 02:00:48 +0000 |
parents | 8e618a7111a5 |
children | af159a5bbaa0 |
comparison
equal
deleted
inserted
replaced
5727:2e9f040f6b66 | 5728:4115f24e6e24 |
---|---|
49 return; | 49 return; |
50 | 50 |
51 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(p); | 51 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(p); |
52 | 52 |
53 if (prpl_info->login) { | 53 if (prpl_info->login) { |
54 if (!strlen(account->password) && !(prpl_info->options & OPT_PROTO_NO_PASSWORD) && | 54 if (gaim_account_get_password(account) == NULL && |
55 !(prpl_info->options & OPT_PROTO_NO_PASSWORD) && | |
55 !(prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL)) { | 56 !(prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL)) { |
56 gaim_notify_error(NULL, NULL, | 57 gaim_notify_error(NULL, NULL, |
57 _("Please enter your password"), NULL); | 58 _("Please enter your password"), NULL); |
58 return; | 59 return; |
59 } | 60 } |