inn dieing again

Alex Kiernan alexk at demon.net
Wed Jun 13 11:34:06 UTC 2001


With apologies for the War & Peace I seem to have made out of this
problem, here's a patch which really does seem to fix the problem:

Index: lib/endian.c
===================================================================
RCS file: /cvsroot/upstream/inn/lib/endian.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- lib/endian.c	2001/05/02 14:52:46	1.1.1.1
+++ lib/endian.c	2001/06/13 11:20:37	1.2
@@ -98,6 +98,8 @@
 	store(p, i);
 	load_and_store(p, 1);
     }
+    /* simply here so the compiler can't optimise everything away */
+    memchr(byte, '\0', sizeof byte);
 
     /* if we got here, then we can mis-align longs */
     printf("#undef INN_MUST_ALIGN\n");


Why the previous change appeared to work, I've no idea, but I can see
it having worked in my scrollback buffer - go figure :-(

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC


More information about the inn-workers mailing list