mshtml: Don't crash in GetSecurityInfo if channel is NULL.
This commit is contained in:
parent
f052845013
commit
5ad79df0f8
|
@ -456,8 +456,14 @@ static nsresult NSAPI nsChannel_SetNotificationCallbacks(nsIHttpChannel *iface,
|
||||||
static nsresult NSAPI nsChannel_GetSecurityInfo(nsIHttpChannel *iface, nsISupports **aSecurityInfo)
|
static nsresult NSAPI nsChannel_GetSecurityInfo(nsIHttpChannel *iface, nsISupports **aSecurityInfo)
|
||||||
{
|
{
|
||||||
nsChannel *This = NSCHANNEL_THIS(iface);
|
nsChannel *This = NSCHANNEL_THIS(iface);
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, aSecurityInfo);
|
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)
|
static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString *aContentType)
|
||||||
|
|
Loading…
Reference in New Issue