- ws
authorMichael Wallner <mike@php.net>
Thu, 21 Jul 2005 16:15:24 +0000 (16:15 +0000)
committerMichael Wallner <mike@php.net>
Thu, 21 Jul 2005 16:15:24 +0000 (16:15 +0000)
http_cache_api.c

index af0310e1a6fa274fa344ec125512b50292f63d8d..e9639498d05189e1f6c052ed7a9c14443fdff41b 100644 (file)
@@ -78,7 +78,7 @@ PHP_HTTP_API char *_http_etag(const void *data_ptr, size_t data_len, http_send_m
                case SEND_RSRC:
                {
             if (php_stream_stat((php_stream *) data_ptr, &ssb)) {
-               efree(new_etag);
+                               efree(new_etag);
                 return NULL;
             }
 
@@ -89,10 +89,10 @@ PHP_HTTP_API char *_http_etag(const void *data_ptr, size_t data_len, http_send_m
 
                default:
                {
-            if (php_stream_stat_path(Z_STRVAL_P((zval *) data_ptr), &ssb)) {
-               efree(new_etag);
-                return NULL;
-            }
+                       if (php_stream_stat_path(Z_STRVAL_P((zval *) data_ptr), &ssb)) {
+                               efree(new_etag);
+                               return NULL;
+                       }
 
                        snprintf(ssb_buf, 127, "%ld=%ld=%ld", ssb.sb.st_mtime, ssb.sb.st_ino, ssb.sb.st_size);
                        PHP_MD5Update(&ctx, ssb_buf, strlen(ssb_buf));