changeset 24426:f387ded6f5ed

Patch from Raiko Nitzsche to fix a crash when processing a LOGIN_REDIRECT with unexpected output. References #7563.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 21 Nov 2008 16:48:15 +0000
parents 7cf760f3560e
children 39841a84c944
files libpurple/protocols/sametime/sametime.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/sametime/sametime.c	Fri Nov 21 12:12:31 2008 +0000
+++ b/libpurple/protocols/sametime/sametime.c	Fri Nov 21 16:48:15 2008 +0000
@@ -1445,7 +1445,7 @@
 					 MW_PLUGIN_DEFAULT_HOST);
 
   if(purple_account_get_bool(account, MW_KEY_FORCE, FALSE) ||
-     (! strcmp(current_host, host)) ||
+     !host || (! strcmp(current_host, host)) ||
      (purple_proxy_connect(NULL, account, host, port, connect_cb, pd) == NULL)) {
 
     /* if we're configured to force logins, or if we're being