[libsoup] SoupCache: some issues in SoupCache (3/3)



commit a1d5f80e2773d6f294eef9bea1212a381b36b89f
Author: Sergio Villar Senin <svillar igalia com>
Date:   Fri Jan 27 18:56:21 2012 +0100

    SoupCache: some issues in SoupCache (3/3)
    
    Check that cache control is not blank to prevent some criticals.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668865

 libsoup/soup-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index 4002a06..6ee6dd9 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -164,7 +164,7 @@ get_cacheability (SoupCache *cache, SoupMessage *msg)
 		return SOUP_CACHE_UNCACHEABLE;
 
 	cache_control = soup_message_headers_get (msg->response_headers, "Cache-Control");
-	if (cache_control) {
+	if (cache_control && *cache_control) {
 		GHashTable *hash;
 		SoupCachePrivate *priv = SOUP_CACHE_GET_PRIVATE (cache);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]