the same here
authorMichael Wallner <mike@php.net>
Tue, 26 Jul 2011 06:31:59 +0000 (06:31 +0000)
committerMichael Wallner <mike@php.net>
Tue, 26 Jul 2011 06:31:59 +0000 (06:31 +0000)
php_http_etag.c

index c56aa496c53e87e9efd580736c9087eaf9d54d38..87164fef22b3406faf0755a4b41c30cc4bdcf19b 100644 (file)
@@ -76,7 +76,7 @@ PHP_HTTP_API size_t php_http_etag_update(php_http_etag_t *e, const char *data_pt
 #ifdef PHP_HTTP_HAVE_HASH
        const php_hash_ops *eho = NULL;
 
-       if (mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
+       if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
                eho->hash_update(e->ctx, (const unsigned char *) data_ptr, data_len);
        } else
 #endif