diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-05-05 00:56:58 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-05-05 11:34:52 +1000 |
commit | 0e44db4d9cb313e68a59a44d27884af66c02356e (patch) | |
tree | 63c2a43a53e6c60de2e2f93fb30a43a05b561c0f /channels.c | |
parent | 37b62fd5caf19c85a48241535277cefff65adace (diff) | |
download | openssh-git-0e44db4d9cb313e68a59a44d27884af66c02356e.tar.gz |
upstream: channel_new no longer frees remote_name. So update the
comment accordingly. As remote_name is not modified, it can be const as
well. From Martin Vahlensieck
OpenBSD-Commit-ID: e4e10dc8dc9f40c166ea5a8e991942bedc75a76a
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.418 2022/05/04 07:31:22 markus Exp $ */ +/* $OpenBSD: channels.c,v 1.419 2022/05/05 00:56:58 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -361,12 +361,12 @@ channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, } /* - * Allocate a new channel object and set its type and socket. This will cause - * remote_name to be freed. + * Allocate a new channel object and set its type and socket. */ Channel * channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd, - u_int window, u_int maxpack, int extusage, char *remote_name, int nonblock) + u_int window, u_int maxpack, int extusage, const char *remote_name, + int nonblock) { struct ssh_channels *sc = ssh->chanctxt; u_int i, found; |