Close socket fix, might relate to migration crashing
This was listed as a bug, and was immediatelly picked the static analyzer anyway, this is very likely the cause for the migration-cancel-crash bug. Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:

committed by
Patrick J Cherry

parent
ba14943b60
commit
1fefe1a669
@@ -922,7 +922,7 @@ void* mirror_runner(void* serve_params_uncast)
|
||||
* for us ). But if we've failed and are going to retry on the next run, we
|
||||
* must close this socket here to have any chance of it succeeding.
|
||||
*/
|
||||
if ( !mirror->client < 0 ) {
|
||||
if ( !(mirror->client < 0) ) {
|
||||
sock_try_close( mirror->client );
|
||||
mirror->client = -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user