Merge pull request #4904 from guybe7/memtoll_fix

Use memtoll() in 'CONFIG SET client-output-buffer-limit'
This commit is contained in:
Salvatore Sanfilippo 2019-03-14 11:43:55 +01:00 committed by GitHub
commit ec03f2db6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1074,8 +1074,8 @@ void configSetCommand(client *c) {
int soft_seconds;
class = getClientTypeByName(v[j]);
hard = strtoll(v[j+1],NULL,10);
soft = strtoll(v[j+2],NULL,10);
hard = memtoll(v[j+1],NULL);
soft = memtoll(v[j+2],NULL);
soft_seconds = strtoll(v[j+3],NULL,10);
server.client_obuf_limits[class].hard_limit_bytes = hard;