summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qhostinfo_p.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-22 17:59:05 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-03-23 11:03:40 (GMT)
commit1831e7f802d1bdba33f320c21f29df02d647ead8 (patch)
tree4e794b5046b8155422a2dc5d28f5f3feaa4c9bc8 /src/network/kernel/qhostinfo_p.h
parentf31dfc682402396e35dffd8952eb5ced8f6b4030 (diff)
downloadQt-1831e7f802d1bdba33f320c21f29df02d647ead8.zip
Qt-1831e7f802d1bdba33f320c21f29df02d647ead8.tar.gz
Qt-1831e7f802d1bdba33f320c21f29df02d647ead8.tar.bz2
Ensure parameters of async function calls stay in scope
Calling symbian asynchronous functions with parameters on the stack, even "in" parameters is unsafe. If the server is blocked on another operation, then it will not read the parameters until later (at which time the stack is invalid) Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel/qhostinfo_p.h')
-rw-r--r--src/network/kernel/qhostinfo_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h
index bff5fc4..71c191f 100644
--- a/src/network/kernel/qhostinfo_p.h
+++ b/src/network/kernel/qhostinfo_p.h
@@ -249,12 +249,16 @@ private:
private:
const QString iHostName;
+ QString iEncodedHostName;
+ TPtrC iHostNamePtr;
RSocketServ& iSocketServ;
RHostResolver iHostResolver;
QSharedPointer<QNetworkSession> iNetworkSession;
TNameEntry iNameResult;
+ TInetAddr IpAdd;
+
QHostAddress iAddress;
QHostInfo iResults;