------------------------------------------------------------------------
r1971 | darix | 2007-08-27 23:54:45 +0200 (Mon, 27 Aug 2007) | 1 line

- make sure the etag buffer is non empty if we compare it with if-non-match
------------------------------------------------------------------------
Index: src/etag.c
===================================================================
--- src/etag.c	(revision 1970)
+++ src/etag.c	(revision 1971)
@@ -5,7 +5,7 @@
 #include "etag.h"
 
 int etag_is_equal(buffer *etag, const char *matches) {
-	if (0 == strcmp(etag->ptr, matches)) return 1;
+	if (etag && !buffer_is_empty(etag) && 0 == strcmp(etag->ptr, matches)) return 1;
 	return 0;
 }
 
