wmail: fixed possible NULL-pointer dereference in config-parser.
commitdbc178ec3ffd00d804bec3f415cc3e3bc02045e7
authorJeremy Sowden <jeremy@azazel.net>
Fri, 21 Jun 2019 10:50:32 +0000 (21 11:50 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 21 Jun 2019 11:28:08 +0000 (21 12:28 +0100)
tree6aa46361d883584eda3da84cb2722cbcc7e31463
parent40d7eb504ca248610c99cf3f6e95f7727df59fd5
wmail: fixed possible NULL-pointer dereference in config-parser.

The code calling Tokenize assumed that if it returned true, value would
not be NULL.  However, in the case of a line containing no equals sign:

  blah

that would not be the case.  Changed Tokenize to return false unless id
and value are both defined.
wmail/src/config.c