mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Remove redundant check for NULL in sshfwd_close(). The thing we're
testing against NULL has already been dereferenced by the time we bother to test it, so it's a bit pointless - and in any case, no null pointer can come to this function from any existing call site. [originally from svn r8990]
This commit is contained in:
parent
7531c7d3d4
commit
b7d2abe095
2
ssh.c
2
ssh.c
@ -4164,7 +4164,7 @@ void sshfwd_close(struct ssh_channel *c)
|
|||||||
if (ssh->state == SSH_STATE_CLOSED)
|
if (ssh->state == SSH_STATE_CLOSED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (c && !c->closes) {
|
if (!c->closes) {
|
||||||
/*
|
/*
|
||||||
* If halfopen is true, we have sent
|
* If halfopen is true, we have sent
|
||||||
* CHANNEL_OPEN for this channel, but it hasn't even been
|
* CHANNEL_OPEN for this channel, but it hasn't even been
|
||||||
|
Loading…
Reference in New Issue
Block a user