From 2d83f3faab52ef7be89a68c9eb469d79379fcda7 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Sat, 17 Jul 1999 03:02:22 +0000 Subject: [PATCH] More error checking for nsFTPChannel::Init() --- netwerk/protocol/ftp/src/nsFTPChannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwerk/protocol/ftp/src/nsFTPChannel.cpp b/netwerk/protocol/ftp/src/nsFTPChannel.cpp index d4edd053d68e..9814d49f9563 100644 --- a/netwerk/protocol/ftp/src/nsFTPChannel.cpp +++ b/netwerk/protocol/ftp/src/nsFTPChannel.cpp @@ -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);