projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
b5ed9c3
)
libmemcached/sasl: ensure mech list is zero terminated
author
Michael Wallner
<mike@php.net>
Wed, 16 Sep 2020 12:24:19 +0000
(14:24 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 16 Sep 2020 12:24:19 +0000
(14:24 +0200)
src/libmemcached/sasl.cc
patch
|
blob
|
history
diff --git
a/src/libmemcached/sasl.cc
b/src/libmemcached/sasl.cc
index 89462e50d7edfa204cbd8c1a0d7565ed45914e07..021cf3fbad4ccdc764b86f43a60a21c57d1dd2f3 100644
(file)
--- a/
src/libmemcached/sasl.cc
+++ b/
src/libmemcached/sasl.cc
@@
-173,8
+173,8
@@
memcached_return_t memcached_sasl_authenticate_connection(memcached_instance_st*
memcached_server_response_increment(server);
- char mech[MEMCACHED_MAX_BUFFER];
- memcached_return_t rc= memcached_response(server, mech, sizeof(mech), NULL);
+ char mech[MEMCACHED_MAX_BUFFER]
= {0}
;
+ memcached_return_t rc= memcached_response(server, mech, sizeof(mech)
- 1
, NULL);
if (memcached_failed(rc))
{
if (rc == MEMCACHED_PROTOCOL_ERROR)