summaryrefslogtreecommitdiff
path: root/extstore.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-12-06 11:12:16 +0000
committerdormando <dormando@rydia.net>2020-01-13 17:38:48 -0800
commit81d6ddce19e40093d952bb9d0dcd8b00af09d476 (patch)
tree999547d6682d143a1671bf43a8b4018aafeb4b45 /extstore.c
parent6beabdff0ac3b487413f7e8bde3bb7a0c659b17e (diff)
downloadmemcached-81d6ddce19e40093d952bb9d0dcd8b00af09d476.tar.gz
auth file, using alternative bcmp implementation
... instead to check the token. less optimised than the usual memcmp especially it goes through the whole buffers but more resilient against possible attacks. While at it, constifying a var which should have been.
Diffstat (limited to 'extstore.c')
-rw-r--r--extstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extstore.c b/extstore.c
index 6e21c0f..e825667 100644
--- a/extstore.c
+++ b/extstore.c
@@ -186,7 +186,7 @@ void extstore_get_page_data(void *ptr, struct extstore_stats *st) {
}
const char *extstore_err(enum extstore_res res) {
- char *rv = "unknown error";
+ const char *rv = "unknown error";
switch (res) {
case EXTSTORE_INIT_BAD_WBUF_SIZE:
rv = "page_size must be divisible by wbuf_size";