Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > e97ac695008d4104571f32c40d8b84dd > files > 20

links-hacked-0.0.031220-35.mga3.src.rpm

diff -up ./cache.c.tv ./cache.c
--- ./cache.c.tv	2011-05-11 10:56:46.182177849 +0200
+++ ./cache.c	2011-05-11 10:56:46.985179280 +0200
@@ -101,6 +101,7 @@ int add_fragment(struct cache_entry *e, 
 	struct fragment *nf;
 	int a = 0;
 	int trunc = 0;
+	if (data==NULL) return 0;
 	if (!length) return 0;
 	if (e->length < offset + length) e->length = offset + length;
 	e->count = cache_count++;