aboutsummaryrefslogtreecommitdiffstats
path: root/dcc.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2014-10-27 03:36:09 -0300
committerdequis <dx@dxzone.com.ar>2014-10-27 03:36:09 -0300
commitb6bd99c766d88ef37c735f5bbd08e621288d955d (patch)
tree36c9789da9e8fee7123c02cc0b3a3cd761175788 /dcc.c
parent8256ad5ed0c545dfbfd0035d0bac8296ac224467 (diff)
dcc: Fix some invalid memory accesses reported by ASAN
ASAN <3
Diffstat (limited to 'dcc.c')
-rw-r--r--dcc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dcc.c b/dcc.c
index 794b3613..8fca9ac2 100644
--- a/dcc.c
+++ b/dcc.c
@@ -384,10 +384,11 @@ gboolean dccs_recv_proto( gpointer data, gint fd, b_input_condition cond )
if( df->watch_out )
b_event_remove( df->watch_out );
+ df->watch_in = 0;
+
if( df->proto_finished )
dcc_finish( ft );
- df->watch_in = 0;
return FALSE;
}