diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-09 08:12:15 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-09 08:12:15 +0000 |
commit | 2d0175a1ec7e41cfb923ef175c6b48d094f532a7 (patch) | |
tree | ba4058c74f082c2bbf4ce4d5eb10d8e746e1e9da /ommysql.c | |
parent | 4459faa3799e4804402327e8fc4ea92abc96a0e1 (diff) | |
download | rsyslog-2d0175a1ec7e41cfb923ef175c6b48d094f532a7.tar.gz rsyslog-2d0175a1ec7e41cfb923ef175c6b48d094f532a7.tar.xz rsyslog-2d0175a1ec7e41cfb923ef175c6b48d094f532a7.zip |
- fixed a bug in outchannel code that caused templates to be incorrectly
parsed
- fixed a bug in ommysql that caused a wrong ";template" missing message in
some cases
Diffstat (limited to 'ommysql.c')
-rw-r--r-- | ommysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -270,7 +270,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1) * We specify that the SQL option must be present in the template. * This is for your own protection (prevent sql injection). */ - if(*p != ';') + if(*(p-1) == ';') --p; /* TODO: the whole parsing of the MySQL module needs to be re-thought - but this here * is clean enough for the time being -- rgerhards, 2007-07-30 */ |