~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to cli-channel.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
/* We receive channel data - only used by the client chansession code*/
34
34
void recv_msg_channel_extended_data() {
35
35
 
36
 
        unsigned int chan;
37
36
        struct Channel *channel;
38
37
        unsigned int datatype;
39
38
 
40
39
        TRACE(("enter recv_msg_channel_extended_data"))
41
40
 
42
 
        chan = buf_getint(ses.payload);
43
 
        channel = getchannel(chan);
44
 
 
 
41
        channel = getchannel();
45
42
        if (channel == NULL) {
46
43
                dropbear_exit("Unknown channel");
47
44
        }