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.10 6.9 6.8 Change-Id: I2b478de2d3865112978202959e1af07b17f7751a Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
e95d0041f1
commit
b86f9cb5d9
|
|
@ -1060,7 +1060,7 @@ QUrl QGrpcHttp2ChannelPrivate::sanitizeHostUri(const QUrl &rawUri,
|
||||||
if (rawUri.scheme() != expected) {
|
if (rawUri.scheme() != expected) {
|
||||||
qCWarning(lcChannel,
|
qCWarning(lcChannel,
|
||||||
"[%p] Unsupported transport protocol scheme '%s'. Fall back to '%s'.", this,
|
"[%p] Unsupported transport protocol scheme '%s'. Fall back to '%s'.", this,
|
||||||
qPrintable(hostUri.scheme()), qPrintable(expected));
|
qPrintable(rawUri.scheme()), qPrintable(expected));
|
||||||
sanitizedUri.setScheme(expected);
|
sanitizedUri.setScheme(expected);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue