Skip to content

Commit cbf584b

Browse files
Add warning to make non-registered channelOpenCb visible
1 parent fdf621c commit cbf584b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/internal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8960,6 +8960,9 @@ static int DoChannelOpen(WOLFSSH* ssh,
89608960
if (ssh->ctx->channelOpenCb) {
89618961
ret = ssh->ctx->channelOpenCb(newChannel, ssh->channelOpenCtx);
89628962
}
8963+
else {
8964+
WLOG(WS_LOG_WARN, "No channel open callback set, accepting channel open by default");
8965+
}
89638966
if (ssh->channelListSz == 0)
89648967
ssh->defaultPeerChannelId = peerChannelId;
89658968
#ifdef WOLFSSH_FWD

0 commit comments

Comments
 (0)