File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1388,8 +1388,9 @@ int xmpp_conn_restore_sm_state(xmpp_conn_t *conn,
13881388 memset (conn -> sm_state , 0 , sizeof (* conn -> sm_state ));
13891389 conn -> sm_state -> ctx = conn -> ctx ;
13901390
1391+ conn -> sm_state -> bound_jid = conn -> jid ;
13911392 conn -> sm_state -> sm_support = 1 ;
1392- conn -> sm_state -> sm_enabled = 1 ;
1393+ conn -> sm_state -> sm_enabled = 0 ;
13931394 conn -> sm_state -> can_resume = 1 ;
13941395 conn -> sm_state -> resume = 1 ;
13951396
@@ -1403,7 +1404,7 @@ int xmpp_conn_restore_sm_state(xmpp_conn_t *conn,
14031404 goto err_reload ;
14041405
14051406 size_t id_len ;
1406- ret = sm_load_string (& sm , & conn -> sm_state -> id , & id_len );
1407+ ret = sm_load_string (& sm , & conn -> sm_state -> previd , & id_len );
14071408 if (ret )
14081409 goto err_reload ;
14091410
You can’t perform that action at this time.
0 commit comments