summaryrefslogtreecommitdiffstats
path: root/net/socket_stream
diff options
context:
space:
mode:
authorcdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 20:29:05 +0000
committercdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 20:29:05 +0000
commitaf60ef0bb32bd0babdf51e0e11795ad61b30ec4d (patch)
tree2af8a0399899a5ac108a72bc6933e4a7640967dc /net/socket_stream
parentf3a903ff7c874049ec2d0b3bdca6a6e4058a8ac6 (diff)
downloadchromium_src-af60ef0bb32bd0babdf51e0e11795ad61b30ec4d.zip
chromium_src-af60ef0bb32bd0babdf51e0e11795ad61b30ec4d.tar.gz
chromium_src-af60ef0bb32bd0babdf51e0e11795ad61b30ec4d.tar.bz2
Added check for null delegate when a socket stream closes between DoResolveHost and DoResolveHostDone.
BUG=51846 TEST=None Review URL: http://codereview.chromium.org/3145010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream')
-rw-r--r--net/socket_stream/socket_stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc
index 8d7bfae..5439a6c 100644
--- a/net/socket_stream/socket_stream.cc
+++ b/net/socket_stream/socket_stream.cc
@@ -529,7 +529,7 @@ int SocketStream::DoResolveHost() {
}
int SocketStream::DoResolveHostComplete(int result) {
- if (result == OK) {
+ if (result == OK && delegate_) {
next_state_ = STATE_TCP_CONNECT;
result = delegate_->OnStartOpenConnection(this, &io_callback_);
if (result == net::ERR_IO_PENDING)