diff --git a/src/internal.c b/src/internal.c index d4ddb71be..3d51b2e56 100644 --- a/src/internal.c +++ b/src/internal.c @@ -8960,6 +8960,12 @@ static int DoChannelOpen(WOLFSSH* ssh, if (ssh->ctx->channelOpenCb) { ret = ssh->ctx->channelOpenCb(newChannel, ssh->channelOpenCtx); } + else { + WLOG(WS_LOG_WARN, "No channel open callback set " + "(call wolfSSH_CTX_SetChannelOpenCb()), accepting " + "channel open by default; typeId=%u, peerChannelId=%u", + (word32)typeId, peerChannelId); + } if (ssh->channelListSz == 0) ssh->defaultPeerChannelId = peerChannelId; #ifdef WOLFSSH_FWD