Re: patch: infoemail for err pages

From: Henrik Nordström <hno@dont-contact.us>
Date: Sat, 7 Sep 2002 11:34:35 +0200 (CEST)

I meant memBufClean, not Clear...

and there needs to be a memBufReset(&str) at the start of the function.

Regards
Henrik

On Sat, 7 Sep 2002, PsychoTekk .de wrote:

> hi Henrik,
> somewhere in the last 3 lines there must be a mistake,
> squid compiles fine (except for the memBufClear() call which
> is not defined) but as soon as errorDump() is processed
> squid doesn't work properly anymore...
> regards,
> Clemens
>
> + static int
> + errorDump(ErrorState *err, MemBuf *mb)
> + {
> + request_t *r = err->request;
> + MemBuf str = MemBufNULL;
> + const char *p = NULL; /* takes priority over mb if set */
> + /* email subject line */
> + memBufPrintf(&str, "CacheErrorInfo - %s", errorPageName(err->type));
> + memBufPrintf(mb, "?subject=%s", rfc1738_escape(str.buf));
> + memBufReset(&str);
>
Received on Sat Sep 07 2002 - 03:34:40 MDT

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