Marino Faggiana 7 years ago
parent
commit
23d257700e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      iOSClient/Networking/CCNetworking.m

+ 2 - 1
iOSClient/Networking/CCNetworking.m

@@ -1112,6 +1112,7 @@
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
 
         NSURLSession *sessionUpload;
+        NSError *error;
 
         // *** IS ENCRYPTED ***
         BOOL encrypted = [CCUtility isFolderEncrypted:serverUrl account:_activeAccount];
@@ -1119,7 +1120,7 @@
             
             NSString *tokenLock = [[NCManageDatabase sharedInstance] getE2eEncryptionTokenLockWithServerUrl:serverUrl];
             tableDirectory *directory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@", _activeAccount, serverUrl]];
-            NSError *error = [[NCNetworkingSync sharedManager] lockEndToEndFolderEncrypted:_activeUser userID:_activeUserID password:_activePassword url:_activeUrl fileID:directory.fileID token:&tokenLock];
+            error = [[NCNetworkingSync sharedManager] lockEndToEndFolderEncrypted:_activeUser userID:_activeUserID password:_activePassword url:_activeUrl fileID:directory.fileID token:&tokenLock];
         }
     
         // NSURLSession