masqmail

diff 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
line diff
     1.1 --- a/src/online.c	Thu May 20 21:49:24 2010 +0200
     1.2 +++ b/src/online.c	Fri May 21 14:45:56 2010 +0200
     1.3 @@ -84,7 +84,7 @@
     1.4  
     1.5  	if (strcmp(conf.online_detect, "file") == 0) {
     1.6  		DEBUG(3) debugf("online detection method 'file'\n");
     1.7 -		if (conf.online_file != NULL) {
     1.8 +		if (conf.online_file == NULL) {
     1.9  			logwrite(LOG_ALERT, "online detection mode is 'file', but online_file is undefined\n");
    1.10  			return NULL;
    1.11  		}