--- etag.c-1.4.16 2007-08-24 15:55:17.000000000 -0700 +++ etag.c 2007-08-24 13:35:43.000000000 -0700 @@ -4,7 +4,7 @@ #include "etag.h" int etag_is_equal(buffer *etag, const char *matches) { - if (0 == strcmp(etag->ptr, matches)) return 1; + if (etag && etag->ptr && 0 == strcmp(etag->ptr, matches)) return 1; return 0; }