From: Ian Jackson Date: Mon, 5 Aug 2013 10:45:50 +0000 (+0100) Subject: site: Initialise st->scratch with SETUP_BUFFER_LEN space. X-Git-Tag: debian/0.3.0_beta3~2 X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/commitdiff_plain/8aaaa63461faf2cd29b3e012710fcdc8717b2ea9?hp=8aaaa63461faf2cd29b3e012710fcdc8717b2ea9 site: Initialise st->scratch with SETUP_BUFFER_LEN space. Otherwise, if we're unlucky, we end up trying to construt a PROD packet before we have ever used buffer_copy on scratch, which causes an assertion failure ("buf->size <= buf->len - amount" at util.c:257). Reported-by: Simon Tatham Signed-off-by: Ian Jackson ---