Skip to content

Commit

Permalink
Merge pull request #4656 from nextcloud/bugfix/cfapi-test
Browse files Browse the repository at this point in the history
Fix segfault when _transferDataSocket is nullptr.
  • Loading branch information
Camila authored Jun 21, 2022
2 parents 19bb164 + a97c07f commit db1454b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libsync/vfs/cfapi/hydrationjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ void OCC::HydrationJob::emitFinished(Status status)
_transferDataSocket->disconnectFromServer();
return;
}
_transferDataSocket->close();

if (_transferDataSocket) {
_transferDataSocket->close();
}

emit finished(this);
}
Expand Down

0 comments on commit db1454b

Please sign in to comment.