diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-21 19:13:54 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-11-21 19:13:54 +0000 |
commit | 68adaf84564823c1e2d5629c27011302bead3546 (patch) | |
tree | 92963b62427b95cf811fa2c1492056f35ebd10f2 /protocols/account.c | |
parent | 694be84bc65240f6125852fc6203d5ffd50c6b05 (diff) |
Extra NULL-check because it *is* possible that prpl->login returns without
even trying to log in.
Diffstat (limited to 'protocols/account.c')
-rw-r--r-- | protocols/account.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); } |