aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-21 12:28:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-21 12:28:34 +0200
commit783e9b76de9a8ec16e8229d7c476b16ba8011554 (patch)
treeee27ef686f8aefa4dc36a3d0999e123f52ed0fb2 /bitlbee.c
parent51bbec0b0e280be629f7b1086160b7730ebfdb74 (diff)
parent92998915be47eab17e548af5c3dd43fa4eab9683 (diff)
Merge trunk.
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 59a417f0..17431546 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -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;
}