mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
drbd: don't retry connection if peers do not agree on "authentication" settings
emma: "Unexpected data packet AuthChallenge (0x0010)" ava: "expected AuthChallenge packet, received: ReportProtocol (0x000b)" "Authentication of peer failed, trying again." Pattern repeats. There is no point in retrying the handshake, if we expect to receive an AuthChallenge, but the peer is not even configured to expect or use a shared secret. Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
2c38f03511
commit
9049ccd46f
@ -5332,7 +5332,7 @@ static int drbd_do_auth(struct drbd_connection *connection)
|
||||
if (pi.cmd != P_AUTH_CHALLENGE) {
|
||||
drbd_err(connection, "expected AuthChallenge packet, received: %s (0x%04x)\n",
|
||||
cmdname(pi.cmd), pi.cmd);
|
||||
rv = 0;
|
||||
rv = -1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user