httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Listeners
Date Mon, 16 Dec 1996 17:12:20 GMT
I checked into the question, and I realised that nr->used is not cleared. The
following patch should fix it:

Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_core.c,v
retrieving revision 1.52
diff -c -r1.52 http_core.c
*** http_core.c 1996/12/06 21:51:32     1.52
--- http_core.c 1996/12/16 18:14:41
***************
*** 1084,1089 ****
--- 1084,1090 ----
        return "Port must be numeric";
      new->local_addr.sin_port = htons(port);
      new->fd = -1;
+     new->used = 0;
      new->next = listeners;
      listeners = new;
      return NULL;

I can't see anything wrong with the other assert, though.

Cheers,

Ben.

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message