mshtml: Don't crash in GetSecurityInfo if channel is NULL.

This commit is contained in:
Jacek Caban 2006-06-20 18:59:09 +02:00 committed by Alexandre Julliard
parent f052845013
commit 5ad79df0f8
1 changed files with 7 additions and 1 deletions

View File

@ -456,8 +456,14 @@ static nsresult NSAPI nsChannel_SetNotificationCallbacks(nsIHttpChannel *iface,
static nsresult NSAPI nsChannel_GetSecurityInfo(nsIHttpChannel *iface, nsISupports **aSecurityInfo)
{
nsChannel *This = NSCHANNEL_THIS(iface);
TRACE("(%p)->(%p)\n", This, aSecurityInfo);
return nsIChannel_GetSecurityInfo(This->channel, aSecurityInfo);
if(This->channel)
return nsIChannel_GetSecurityInfo(This->channel, aSecurityInfo);
FIXME("default action not implemented\n");
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString *aContentType)