From: Michael Wallner Date: Thu, 21 Jul 2005 16:15:24 +0000 (+0000) Subject: - ws X-Git-Tag: RELEASE_0_10_0~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c29a7d9166d1645533f06fdd206782c9b8176eb3;p=m6w6%2Fext-http - ws --- diff --git a/http_cache_api.c b/http_cache_api.c index af0310e..e963949 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -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));