changeset 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 2e9f040f6b66
children 61113d76091c
files src/server.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Tue Jun 03 21:44:40 2003 +0000
+++ b/src/server.c	Wed Jun 04 02:00:48 2003 +0000
@@ -51,7 +51,8 @@
 	prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(p);
 
 	if (prpl_info->login) {
-		if (!strlen(account->password) && !(prpl_info->options & OPT_PROTO_NO_PASSWORD) &&
+		if (gaim_account_get_password(account) == NULL &&
+			!(prpl_info->options & OPT_PROTO_NO_PASSWORD) &&
 			!(prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL)) {
 			gaim_notify_error(NULL, NULL,
 							  _("Please enter your password"), NULL);