~ubuntu-branches/ubuntu/raring/freerdp/raring-proposed

« back to all changes in this revision

Viewing changes to libfreerdp/mcs.c

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2010-11-13 10:58:11 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101113105811-969nn7e2073rh30n
Tags: 0.8.2-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
 
354
354
        mcs_send_connect_initial(mcs);
355
355
        if (!mcs_recv_connect_response(mcs))
 
356
        {
 
357
                ui_error(mcs->sec->rdp->inst, "invalid mcs_recv_connect_response\n");
356
358
                goto error;
 
359
        }
357
360
 
358
361
        mcs_send_edrq(mcs);
359
362
 
360
363
        mcs_send_aurq(mcs);
361
364
        if (!mcs_recv_aucf(mcs, &(mcs->mcs_userid)))
 
365
        {
 
366
                ui_error(mcs->sec->rdp->inst, "invalid mcs_recv_aucf\n");
362
367
                goto error;
 
368
        }
363
369
 
364
370
        mcs_send_cjrq(mcs, mcs->mcs_userid + MCS_USERCHANNEL_BASE);
365
371
 
366
372
        if (!mcs_recv_cjcf(mcs))
 
373
        {
 
374
                ui_error(mcs->sec->rdp->inst, "invalid mcs_recv_cjcf\n");
367
375
                goto error;
 
376
        }
368
377
 
369
378
        mcs_send_cjrq(mcs, MCS_GLOBAL_CHANNEL);
370
379
        if (!mcs_recv_cjcf(mcs))
 
380
        {
 
381
                ui_error(mcs->sec->rdp->inst, "invalid mcs_recv_cjcf\n");
371
382
                goto error;
 
383
        }
372
384
 
373
385
        settings = mcs->sec->rdp->settings;
374
386
        for (i = 0; i < settings->num_channels; i++)
375
387
        {
376
388
                mcs_id = settings->channels[i].chan_id;
377
389
                if (mcs_id >= mcs->mcs_userid + MCS_USERCHANNEL_BASE)
378
 
                        goto error;
 
390
                {
 
391
                        ui_warning(mcs->sec->rdp->inst, "channel %d got id %d >= %d\n", i, mcs_id, mcs->mcs_userid + MCS_USERCHANNEL_BASE);
 
392
                }
379
393
                mcs_send_cjrq(mcs, mcs_id);
380
394
                if (!mcs_recv_cjcf(mcs))
 
395
                {
 
396
                        ui_error(mcs->sec->rdp->inst, "channel %d id %d invalid mcs_recv_cjcf\n", i, mcs_id);
381
397
                        goto error;
 
398
                }
382
399
        }
383
400
        return True;
384
401