static void prepare_write_banner(struct ceph_messenger *msgr,
                                 struct ceph_connection *con)
 {
-       ceph_con_out_kvec_reset(con);
        ceph_con_out_kvec_add(con, strlen(CEPH_BANNER), CEPH_BANNER);
        ceph_con_out_kvec_add(con, sizeof (msgr->my_enc_addr),
                                        &msgr->my_enc_addr);
        con->out_connect.protocol_version = cpu_to_le32(proto);
        con->out_connect.flags = 0;
 
+       ceph_con_out_kvec_reset(con);
        if (include_banner)
                prepare_write_banner(msgr, con);
-       else
-               ceph_con_out_kvec_reset(con);
        ceph_con_out_kvec_add(con, sizeof (con->out_connect), &con->out_connect);
 
        con->out_more = 0;