mirror of https://github.com/qt/qtgrpc.git
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 commitb86f9cb5d9) (cherry picked from commit39db74769a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3e64070eb3
commit
53c44a667d
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue