[BACK]Return to channels.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/channels.c between version 1.405 and 1.406

version 1.405, 2021/02/15 20:43:15 version 1.406, 2021/04/03 06:18:40
Line 2266 
Line 2266 
         chan_fn **pre, **post;          chan_fn **pre, **post;
   
         if ((pre = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*pre))) == NULL ||          if ((pre = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*pre))) == NULL ||
            (post = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*post))) == NULL)              (post = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*post))) == NULL)
                 fatal_f("allocation failed");                  fatal_f("allocation failed");
   
         pre[SSH_CHANNEL_OPEN] =                 &channel_pre_open;          pre[SSH_CHANNEL_OPEN] =                 &channel_pre_open;
Line 2666 
Line 2666 
                         goto out;                          goto out;
                 }                  }
                 c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,                  c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,
                    -1, -1, -1, 0, 0, 0, ctype, 1);                      -1, -1, -1, 0, 0, 0, ctype, 1);
                 c->mux_ctx = downstream;        /* point to mux client */                  c->mux_ctx = downstream;        /* point to mux client */
                 c->mux_downstream_id = id;      /* original downstream id */                  c->mux_downstream_id = id;      /* original downstream id */
                 if ((r = sshbuf_put_cstring(modified, ctype)) != 0 ||                  if ((r = sshbuf_put_cstring(modified, ctype)) != 0 ||
Line 2693 
Line 2693 
                         goto out;                          goto out;
                 }                  }
                 c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,                  c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,
                    -1, -1, -1, 0, 0, 0, "mux-down-connect", 1);                      -1, -1, -1, 0, 0, 0, "mux-down-connect", 1);
                 c->mux_ctx = downstream;        /* point to mux client */                  c->mux_ctx = downstream;        /* point to mux client */
                 c->mux_downstream_id = id;                  c->mux_downstream_id = id;
                 c->remote_id = remote_id;                  c->remote_id = remote_id;

Legend:
Removed from v.1.405  
changed lines
  Added in v.1.406