Share

Auth MemCache Cookie

Tracker: Bugs

5 "=" char not well read from memcached value - ID: 2667863
Last Update: Attachment added ( eliedumas )

The "=" character is not handled correctly in the value associated to a key
in memcached.
Eg : "myKey=/C=fr/next\r\n"
--> key is read as "myKey", but value is read as only "/C" ; it stops at
the next "=" character.

Proposal of fix :

The value is correctly read if the following line :
szFieldValue=strtok_r(NULL,"=",&szFieldTokenPos); (line 205)
is replaced by :
szFieldValue=strtok_r(NULL,"\r\n",&szFieldTokenPos);
so that the string may be read untill the end of the line, not until the
next "=" character.


E. Dumas ( eliedumas ) - 2009-03-06 10:54

5

Open

None

Nobody/Anonymous

None

None

Public


Comments

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
mod_auth_memcookie.c Source corrected (l.205) Download

Change ( 1 )

Field Old Value Date By
File Added 316485: mod_auth_memcookie.c 2009-03-06 10:54 eliedumas