1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Ensure saved_account is set before calling sv_ev_login_account_success

This commit is contained in:
Paul Fariello 2019-03-15 22:58:25 +01:00
parent 031e906035
commit f7ce1607f9

View File

@ -308,11 +308,11 @@ session_login_success(gboolean secured)
accounts_add(saved_details.name, saved_details.altdomain, saved_details.port, saved_details.tls_policy);
accounts_set_jid(saved_details.name, saved_details.jid);
sv_ev_login_account_success(saved_details.name, secured);
saved_account.name = strdup(saved_details.name);
saved_account.passwd = strdup(saved_details.passwd);
_session_free_saved_details();
sv_ev_login_account_success(saved_account.name, secured);
}
roster_request();