if (level > conf->loglevel)
if (conf == NULL || level > conf->loglevel)
logit(int level, const char *fmt, ...){	va_list	 ap;	char	*nfmt;	if (level > conf->loglevel)		return;	va_start(ap, fmt);	if (opt_debug) {		/* best effort in out of mem situations */		if (asprintf(&nfmt, "ifstated: %s\n", fmt) != -1) {			vfprintf(stderr, nfmt, ap);			free(nfmt);		} else {			vfprintf(stderr, fmt, ap);			fprintf(stderr, "\n");		}	} else		vsyslog(LOG_DAEMON, fmt, ap);	va_end(ap);}