masqmail

diff src/conf.c @ 412:8a62bebda631

Fixed segfault, caused by a stupid g_strchug/g_strstrip implementation.
author markus schnalke <meillo@marmaro.de>
date Wed, 29 Feb 2012 13:33:40 +0100
parents 9b93c0a3bd8c
children f37384470855
line diff
     1.1 --- a/src/conf.c	Wed Feb 29 12:06:33 2012 +0100
     1.2 +++ b/src/conf.c	Wed Feb 29 13:33:40 2012 +0100
     1.3 @@ -221,7 +221,7 @@
     1.4  	g_strstrip(line);
     1.5  	iface->address = g_strdup(line);
     1.6  	iface->port = (cp) ? atoi(++cp) : def_port;
     1.7 -	DEBUG(9) fprintf(stderr,"found: address:port=%s:%u\n",
     1.8 +	DEBUG(9) fprintf(stderr, "found: address:port=%s:%u\n",
     1.9  			iface->address, iface->port);
    1.10  	return iface;
    1.11  }
    1.12 @@ -562,7 +562,7 @@
    1.13  	}
    1.14  	if (!listen_addrs_tmp) {
    1.15  		conf.listen_addresses = g_list_append(NULL,
    1.16 -				parse_interface("localhost", 25));
    1.17 +				parse_interface(strdup("localhost"), 25));
    1.18  	} else {
    1.19  		GList *node;
    1.20