Skip to content
Snippets Groups Projects
Commit c5272055 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap: Committed by Kitware Robot
Browse files

Merge topic 'FixSocketNullCrash'


f0729750 Fix NULL socket crash

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarJoachim Pouderoux <joachim.pouderoux@kitware.com>
Merge-request: !2318
parents b78a6d26 f0729750
Branches
Tags
No related merge requests found
......@@ -1088,6 +1088,11 @@ int vtkSocketCommunicator::CheckForErrorInternal(int id)
vtkSocketCommunicatorErrorMacro("No port for process " << id << " exists.");
return 1;
}
else if (!this->Socket)
{
vtkSocketCommunicatorErrorMacro("Socket does not exist.");
return 1;
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment