- fix HTTP_ETAG_CRC32
authorMichael Wallner <mike@php.net>
Fri, 7 Oct 2005 15:57:04 +0000 (15:57 +0000)
committerMichael Wallner <mike@php.net>
Fri, 7 Oct 2005 15:57:04 +0000 (15:57 +0000)
php_http_cache_api.h

index be73fa6aea310173cdc431441b7a290c701560ff..f81f853aecbff935c2378905f0151850c1904871 100644 (file)
@@ -79,7 +79,7 @@ static inline void *_http_etag_init(TSRMLS_D)
        {
                case HTTP_ETAG_CRC32:
                        ctx = emalloc(sizeof(unsigned int));
-                       memset(ctx, 1, sizeof(unsigned int));
+                       *((unsigned int *) ctx) = ~0;
                break;
                
                case HTTP_ETAG_SHA1: