From 68adaf84564823c1e2d5629c27011302bead3546 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 21 Nov 2010 19:13:54 +0000 Subject: Extra NULL-check because it *is* possible that prpl->login returns without even trying to log in. --- protocols/account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/account.c b/protocols/account.c index 819bdc10..de5f9bd4 100644 --- a/protocols/account.c +++ b/protocols/account.c @@ -353,7 +353,7 @@ void account_on( bee_t *bee, account_t *a ) a->reconnect = 0; a->prpl->login( a ); - if( !( a->ic->flags & OPT_SLOW_LOGIN ) ) + if( a->ic && !( a->ic->flags & OPT_SLOW_LOGIN ) ) a->ic->keepalive = b_timeout_add( 120000, account_on_timeout, a->ic ); } -- cgit v1.2.3