W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

HTNet.c

From: Mikhail Grouchinski <mgrouch@usa.net>
Date: 25 Feb 99 10:51:45 EST
Message-ID: <19990225155145.2024.qmail@www0q.netaddress.usa.net>
To: www-lib@w3.org
Hello, Henrik,

I sent you on December 16 a possible fix for HTNet.c
that fixes segmentation fault in authorization.
With this fix you could keep freeing for HTNet object after
calling 'After' filters.

What do you think about this?

PRIVATE BOOL free_net (HTNet * net)
{
    if (CORE_TRACE) HTTrace("Net Object.. Freeing object %p\n", net);
    if (net) {

/*!!!!!! 
         Do we really need this?      

         HTRequest_setNet(net->request, NULL);
!!!!!!*/

        HT_FREE(net);
        return YES;
    }
    return NO;
}

HTNet_delete() ...

	unregister_net(net);

    	/* Call AFTER filters */
	HTNet_executeAfterAll(request, status);
        free_net(net);


____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
Received on Thursday, 25 February 1999 10:57:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT