Commit 5ad79df0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent f0528450
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment