Sockets: Fix potential null pointer usages
authorShane Kearns <shane.kearns@accenture.com>
Thu, 5 May 2011 15:32:11 +0000 (16:32 +0100)
committerOlivier Goffart <olivier.goffart@nokia.com>
Wed, 11 May 2011 14:39:40 +0000 (16:39 +0200)
commit119da2c8d49a1eadd8561b5c7fe04b251d34c96d
tree2d6c250900ce3662596e793569571b042a37d34a
parent10646142aec3b332507b9e7e0028f001c2757a7d
Sockets: Fix potential null pointer usages

QAbstractSocketEngine::createSocketEngine can return 0 as well as throw.
In two cases the pointer was being used before the null check, in a 3rd
case the null check was missing.

Reviewed-by: Markus Goetz
(cherry picked from commit 19edac88af53eea7f733cabbaee77f9b725b7ea9)
src/network/socket/qabstractsocket.cpp
src/network/socket/qtcpserver.cpp