Changeset 640

Show
Ignore:
Timestamp:
11/16/07 07:44:39 (1 year ago)
Author:
dormando
Message:

Fix CAS segfault due to wrong number of tokens (Chris Goffinet, Tomash Brechko)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/memcached.c

    r636 r640  
    825825#define KEY_MAX_LENGTH 250 
    826826 
    827 #define MAX_TOKENS 6 
     827#define MAX_TOKENS 7 
    828828 
    829829/* 
     
    15371537        process_update_command(c, tokens, ntokens, comm, false); 
    15381538 
    1539     } else if (ntokens == 6 && (strcmp(tokens[COMMAND_TOKEN].value, "cas") == 0 && (comm = NREAD_CAS))) { 
     1539    } else if (ntokens == 7 && (strcmp(tokens[COMMAND_TOKEN].value, "cas") == 0 && (comm = NREAD_CAS))) { 
    15401540 
    15411541        process_update_command(c, tokens, ntokens, comm, true);