drbd: Terminate a connection early if sending the protocol fails

Signed-off-by: Philipp Reisner <[email protected]>
Signed-off-by: Lars Ellenberg <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Philipp Reisner 2010-04-22 14:50:23 +02:00 • committed by Jens Axboe
commit 7e2455c1a1

View file

@ -899,7 +899,8 @@ retry:
drbd_thread_start(&mdev->asender);
drbd_send_protocol(mdev);
if (!drbd_send_protocol(mdev))
return -1;
drbd_send_sync_param(mdev, &mdev->sync_conf);
drbd_send_sizes(mdev, 0);
drbd_send_uuids(mdev);