diff options
-rw-r--r-- | net/ceph/messenger.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index b140dd3515d..ce326c80623 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -619,11 +619,12 @@ static int prepare_connect_authorizer(struct ceph_connection *con) | |||
619 | con->out_connect.authorizer_protocol = cpu_to_le32(auth_protocol); | 619 | con->out_connect.authorizer_protocol = cpu_to_le32(auth_protocol); |
620 | con->out_connect.authorizer_len = cpu_to_le32(auth_len); | 620 | con->out_connect.authorizer_len = cpu_to_le32(auth_len); |
621 | 621 | ||
622 | con->out_kvec[con->out_kvec_left].iov_base = auth_buf; | 622 | if (auth_len) { |
623 | con->out_kvec[con->out_kvec_left].iov_len = auth_len; | 623 | con->out_kvec[con->out_kvec_left].iov_base = auth_buf; |
624 | con->out_kvec_left++; | 624 | con->out_kvec[con->out_kvec_left].iov_len = auth_len; |
625 | con->out_kvec_bytes += auth_len; | 625 | con->out_kvec_left++; |
626 | 626 | con->out_kvec_bytes += auth_len; | |
627 | } | ||
627 | return 0; | 628 | return 0; |
628 | } | 629 | } |
629 | 630 | ||