projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
the same here
[m6w6/ext-http]
/
php_http_etag.c
diff --git
a/php_http_etag.c
b/php_http_etag.c
index 40757f799968a000558365347f471810270e26fd..87164fef22b3406faf0755a4b41c30cc4bdcf19b 100644
(file)
--- a/
php_http_etag.c
+++ b/
php_http_etag.c
@@
-1,5
+1,6
@@
#include "php_http.h"
#include "php_http.h"
+
#ifdef PHP_HTTP_HAVE_HASH
# include "php_hash.h"
#endif
#ifdef PHP_HTTP_HAVE_HASH
# include "php_hash.h"
#endif
@@
-48,7
+49,7
@@
PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e)
#ifdef PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
#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_final(digest, e->ctx);
etag = php_http_etag_digest(digest, eho->digest_size);
} else
eho->hash_final(digest, e->ctx);
etag = php_http_etag_digest(digest, eho->digest_size);
} else
@@
-75,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;
#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
eho->hash_update(e->ctx, (const unsigned char *) data_ptr, data_len);
} else
#endif