diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c index 3fb65024becb..221b6eb7edda 100644 --- a/usr.sbin/ctld/login.c +++ b/usr.sbin/ctld/login.c @@ -725,8 +725,8 @@ login_negotiate(struct connection *conn, struct pdu *request) */ if (conn->conn_max_send_data_segment_limit < conn->conn_max_send_data_segment_length) { - conn->conn_max_send_data_segment_limit = - conn->conn_max_send_data_segment_length; + conn->conn_max_send_data_segment_length = + conn->conn_max_send_data_segment_limit; } } else { conn->conn_max_recv_data_segment_limit =