File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ static pthread_mutex_t diff_mutex=PTHREAD_MUTEX_INITIALIZER;
77
77
static int initialdownload = 0 ;
78
78
static paccount_cache_callback_t psync_cache_callback = NULL ;
79
79
static uint32_t psync_is_business = 0 ;
80
- static int psync_digest = 1 ;
81
80
82
81
void do_register_account_events_callback (paccount_cache_callback_t callback ){
83
82
psync_cache_callback = callback ;
@@ -170,7 +169,7 @@ static psync_socket *get_connected_socket(){
170
169
int saveauth , isbusiness , cryptosetup ;
171
170
auth = user = pass = NULL ;
172
171
psync_is_business = 0 ;
173
-
172
+ int digest = 1 ;
174
173
while (1 ){
175
174
psync_free (auth );
176
175
psync_free (user );
@@ -201,7 +200,7 @@ static psync_socket *get_connected_socket(){
201
200
device = psync_deviceid ();
202
201
203
202
if (user && pass && pass [0 ])
204
- if (psync_digest )
203
+ if (digest )
205
204
res = get_userinfo_user_pass (sock , user , pass , device );
206
205
else
207
206
{
@@ -240,11 +239,6 @@ static psync_socket *get_connected_socket(){
240
239
psync_socket_close (sock );
241
240
psync_free (res );
242
241
if (result == 2000 ){
243
- if (psync_digest )
244
- {
245
- psync_digest = 0 ;
246
- continue ;
247
- }
248
242
if (user && pass )
249
243
psync_set_status (PSTATUS_TYPE_AUTH , PSTATUS_AUTH_BADLOGIN );
250
244
else
@@ -258,7 +252,7 @@ static psync_socket *get_connected_socket(){
258
252
psync_wait_status (PSTATUS_TYPE_AUTH , PSTATUS_AUTH_PROVIDED );
259
253
} else if (result == 2237 )
260
254
{
261
- psync_digest = 0 ;
255
+ digest = 0 ;
262
256
continue ;
263
257
}
264
258
You can’t perform that action at this time.
0 commit comments