Sophie

Sophie

distrib > Mageia > 2 > x86_64 > media > core-release-src > by-pkgid > e145251cba93e97f5e3b872b647e04ae > files > 19

links-hacked-0.0.031220-32.mga2.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++;