diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-21 12:28:34 +0200 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-21 12:28:34 +0200 | 
| commit | 783e9b76de9a8ec16e8229d7c476b16ba8011554 (patch) | |
| tree | ee27ef686f8aefa4dc36a3d0999e123f52ed0fb2 /bitlbee.c | |
| parent | 51bbec0b0e280be629f7b1086160b7730ebfdb74 (diff) | |
| parent | 92998915be47eab17e548af5c3dd43fa4eab9683 (diff) | |
Merge trunk.
Diffstat (limited to 'bitlbee.c')
| -rw-r--r-- | bitlbee.c | 16 | 
1 files changed, 10 insertions, 6 deletions
| @@ -53,11 +53,11 @@ int bitlbee_daemon_init()  #endif  	; -	i = getaddrinfo( global.conf->iface, global.conf->port, &hints, &addrinfo_bind ); +	i = getaddrinfo( global.conf->iface_in, global.conf->port, &hints, &addrinfo_bind );  	if( i )  	{  		log_message( LOGLVL_ERROR, "Couldn't parse address `%s': %s", -		                           global.conf->iface, gai_strerror(i) ); +		                           global.conf->iface_in, gai_strerror(i) );  		return -1;  	} @@ -225,12 +225,16 @@ gboolean bitlbee_io_current_client_write( gpointer data, gint fd, b_input_condit  	if( st == size )  	{ -		g_free( irc->sendbuffer ); -		irc->sendbuffer = NULL; -		irc->w_watch_source_id = 0; -		  		if( irc->status & USTATUS_SHUTDOWN ) +		{  			irc_free( irc ); +		} +		else +		{ +			g_free( irc->sendbuffer ); +			irc->sendbuffer = NULL; +			irc->w_watch_source_id = 0; +		}  		return FALSE;  	} | 
