QGrpcHttp2Channel: fix illegal access when printing

We are constructing 'hostUri' at this point. Don't use it for printing.

Coverity-Id: 894268
Pick-to: 6.8
Change-Id: I2b478de2d3865112978202959e1af07b17f7751a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit b86f9cb5d9)
(cherry picked from commit 39db74769a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Dennis Oberst 2025-09-05 08:48:29 +02:00 committed by Qt Cherry-pick Bot
parent 3e64070eb3
commit 53c44a667d
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ QUrl QGrpcHttp2ChannelPrivate::sanitizeHostUri(const QUrl &rawUri,
if (rawUri.scheme() != expected) {
qCWarning(lcChannel,
"[%p] Unsupported transport protocol scheme '%s'. Fall back to '%s'.", this,
qPrintable(hostUri.scheme()), qPrintable(expected));
qPrintable(rawUri.scheme()), qPrintable(expected));
sanitizedUri.setScheme(expected);
}
};