Skip to content

Commit 030909e

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/internal.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8960,6 +8960,12 @@ 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 "
8965+
"(call wolfSSH_CTX_SetChannelOpenCb()), accepting "
8966+
"channel open by default; typeId=%u, peerChannelId=%u",
8967+
(word32)typeId, peerChannelId);
8968+
}
89638969
if (ssh->channelListSz == 0)
89648970
ssh->defaultPeerChannelId = peerChannelId;
89658971
#ifdef WOLFSSH_FWD

0 commit comments

Comments
 (0)