Mercurial > masqmail-0.2
comparison src/online.c @ 51:8a92de5e8907
fixed inverted condition for undefined online_file
reported by Juergen Daubert via mailing list
the bug was introduced by refactoring (seems we need automated testing)
author | meillo@marmaro.de |
---|---|
date | Fri, 21 May 2010 14:45:56 +0200 |
parents | e1004fcc93c9 |
children | 3b344bf57162 |
comparison
equal
deleted
inserted
replaced
50:1761b3bde646 | 51:8a92de5e8907 |
---|---|
82 return NULL; | 82 return NULL; |
83 } | 83 } |
84 | 84 |
85 if (strcmp(conf.online_detect, "file") == 0) { | 85 if (strcmp(conf.online_detect, "file") == 0) { |
86 DEBUG(3) debugf("online detection method 'file'\n"); | 86 DEBUG(3) debugf("online detection method 'file'\n"); |
87 if (conf.online_file != NULL) { | 87 if (conf.online_file == NULL) { |
88 logwrite(LOG_ALERT, "online detection mode is 'file', but online_file is undefined\n"); | 88 logwrite(LOG_ALERT, "online detection mode is 'file', but online_file is undefined\n"); |
89 return NULL; | 89 return NULL; |
90 } | 90 } |
91 | 91 |
92 struct stat st; | 92 struct stat st; |