• Matt Stancliff's avatar
    Fix redisAppendCommand error result · 6a00a464
    Matt Stancliff authored
    Previously, redisvAppendCommand() would return OOM even with formatting
    errors.  Now we use OTHER with an error string telling the user the
    error was formatting related, not memory related.
    
    This also fixes a potentially worse bug where were would pass error result
    of -1 as an actual length to another function taking an unsigned length,
    which would result in crash/overallocation/errors.  Now for that case,
    we just return an error immediately and stop processing the command.
    
    Fixes #177
    6a00a464
async.c 22.6 KB