0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-30 21:55:31 +00:00

Fixed quoted string parsing.

This commit is contained in:
Leonid Evdokimov 2008-02-09 23:23:54 +06:00
parent 72a8d52466
commit ceba0e643c

View File

@ -179,8 +179,10 @@ static char *gettoken(parser_context *context, char **iter)
char *p = ret;
(*iter)++;
while ( 1 ) {
if (**iter == '\"')
if (**iter == '\"') {
(*iter)++;
break;
}
if (**iter == '\\') {
*p = unescape(*(*iter + 1));
(*iter)++;