From 5ad79df0f85b8dcd3a0b082f14dc52b6446ebc24 Mon Sep 17 00:00:00 2001 From: Jacek Caban <jacek@codeweavers.com> Date: Tue, 20 Jun 2006 18:59:09 +0200 Subject: [PATCH] mshtml: Don't crash in GetSecurityInfo if channel is NULL. --- dlls/mshtml/nsio.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 2a922a32200..c3269fcb394 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -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) -- GitLab