diff options
author | markus@openbsd.org <markus@openbsd.org> | 2020-03-06 19:19:21 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-03-13 03:13:30 +0100 |
commit | a6134b02b5264b2611c8beae98bb392329452bba (patch) | |
tree | 026ee5956e420e8e3d24a794f55893c082e22fc5 /channels.c | |
parent | upstream: exit on parse failures in input_service_request; ok djm (diff) | |
download | openssh-a6134b02b5264b2611c8beae98bb392329452bba.tar.xz openssh-a6134b02b5264b2611c8beae98bb392329452bba.zip |
upstream: fix uninitialized pointers for forward_cancel; ok djm
OpenBSD-Commit-ID: 612778e6d87ee865d0ba97d0a335f141cee1aa37
Diffstat (limited to '')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c index 19c22c4ef..9683b3363 100644 --- a/channels.c +++ b/channels.c @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.396 2020/02/26 13:40:09 jsg Exp $ */ +/* $OpenBSD: channels.c,v 1.397 2020/03/06 18:19:21 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -4001,7 +4001,7 @@ channel_request_rforward_cancel_tcpip(struct ssh *ssh, struct permission_set *pset = &sc->local_perms; int r; u_int i; - struct permission *perm; + struct permission *perm = NULL; for (i = 0; i < pset->num_permitted_user; i++) { perm = &pset->permitted_user[i]; @@ -4037,7 +4037,7 @@ channel_request_rforward_cancel_streamlocal(struct ssh *ssh, const char *path) struct permission_set *pset = &sc->local_perms; int r; u_int i; - struct permission *perm; + struct permission *perm = NULL; for (i = 0; i < pset->num_permitted_user; i++) { perm = &pset->permitted_user[i]; |