Re: Squid-1.2.beta2 available

From: Michael O'Reilly <michael@dont-contact.us>
Date: 29 Oct 1997 14:49:28 +0800

HMm. reading thru the diff, an obvious error??

diff -Ncr squid-1.2.beta1/src/fqdncache.c squid-1.2.beta2/src/fqdncache.c
*** squid-1.2.beta1/src/fqdncache.c Mon Oct 13 15:09:08 1997
--- squid-1.2.beta2/src/fqdncache.c Mon Oct 27 14:48:56 1997

***************
*** 693,699 ****
      if (f->status != FQDN_PENDING)
        debug_trap("fqdncache_dnsDispatch: status != FQDN_PENDING");
      buf = xcalloc(1, 256);
! snprintf(buf, 256, "%1.254s\n", f->name);
      dns->flags |= DNS_FLAG_BUSY;
      dns->data = f;
      f->status = FQDN_DISPATCHED;
--- 691,697 ----
      if (f->status != FQDN_PENDING)
        debug_trap("fqdncache_dnsDispatch: status != FQDN_PENDING");
      buf = xcalloc(1, 256);
! snprintf(buf, 256, "s\n", f->name);
      dns->flags |= DNS_FLAG_BUSY;
      dns->data = f;
      f->status = FQDN_DISPATCHED;

The line 'snprintf(buf, 256, "s\n", f->name);' is almost certainly
wrong. Maybe a '%' in there somewhere? :)
Received on Tue Jul 29 2003 - 13:15:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:28 MST