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

Autorization core dump fix

From: Mikhail Grouchinski <mgrouch@usa.net>
Date: 16 Feb 99 15:31:45 EST
Message-ID: <19990216203145.29673.qmail@www0i.netaddress.usa.net>
To: www-lib@w3.org
I found the fix for core dump.

in HTNet.c free_net() we should not null Request's net 
if it has been changed by "After" filters.

It may not be equal 'net' passed as
input parameter and it can be needed for libwww later for example 
in case of redirection (HTTP status code 302).

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

	HTNet * new_net = HTRequest_net(net->request);
	if (new_net)
	    if (new_net == net)
	       HTRequest_setNet(net->request, NULL);

	return YES;
    return NO;

May be we even can throw away the lines between comments.
This requires additional testing but would be more nice and


Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
Received on Tuesday, 16 February 1999 15:32:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:49 UTC