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

« back to all changes in this revision

Viewing changes to cli-chansession.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:
62
62
        TRACE(("enter cli_chansessreq"))
63
63
 
64
64
        type = buf_getstring(ses.payload, NULL);
65
 
        wantreply = buf_getbyte(ses.payload);
 
65
        wantreply = buf_getbool(ses.payload);
66
66
 
67
67
        if (strcmp(type, "exit-status") != 0) {
68
68
                TRACE(("unknown request '%s'", type))
340
340
static int cli_initchansess(struct Channel *channel) {
341
341
 
342
342
 
343
 
        channel->infd = STDOUT_FILENO;
 
343
        channel->writefd = STDOUT_FILENO;
344
344
        setnonblocking(STDOUT_FILENO);
345
345
 
346
 
        channel->outfd = STDIN_FILENO;
 
346
        channel->readfd = STDIN_FILENO;
347
347
        setnonblocking(STDIN_FILENO);
348
348
 
349
349
        channel->errfd = STDERR_FILENO;