mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
More error checking for nsFTPChannel::Init()
This commit is contained in:
parent
03ab1963e3
commit
2d83f3faab
@ -94,6 +94,10 @@ nsFTPChannel::Init(const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
|
||||
if (mConnected)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if (!getter) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
mUrl = uri;
|
||||
NS_ADDREF(mUrl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user