diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-06-09 03:52:28 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-06-09 03:52:28 +0200 |
commit | c4a1036214c5f5c1ce14e937e8cdabc9fdf2c068 (patch) | |
tree | c9efb246958cf81ed2d977f8d00499a136a1b23a /bitlbee.c | |
parent | e46e077ccbe5e3e13637618934a0f7979db6bc69 (diff) | |
parent | 783e9b76de9a8ec16e8229d7c476b16ba8011554 (diff) |
Merge integration branch.
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; } @@ -224,12 +224,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; } |