diff options
author | David Carlier <devnexen@gmail.com> | 2019-12-06 11:12:16 +0000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-01-13 17:38:48 -0800 |
commit | 81d6ddce19e40093d952bb9d0dcd8b00af09d476 (patch) | |
tree | 999547d6682d143a1671bf43a8b4018aafeb4b45 /extstore.c | |
parent | 6beabdff0ac3b487413f7e8bde3bb7a0c659b17e (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |