diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-10-21 05:43:42 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-10-21 05:43:42 +0000 |
commit | 202ea4da2d349d1a47eb6a0aa0625c167e04ef13 (patch) | |
tree | 8681907cfea61b238c578b0e1b3978e036ec742e /usr.bin | |
parent | 2fd06fa1201891fe033df71a514fc2002617c2d1 (diff) |
when freeing buffers (i.e. when sio_stop() is called on client side),
clear the ``tickpending'' flag to avoid sending ticks corresponding
to non existent buffers (which in turn confuses clients).
found and analysed by jakemsr@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/aucat/sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c index 9aecb23a7ef..5248d8b3528 100644 --- a/usr.bin/aucat/sock.c +++ b/usr.bin/aucat/sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.31 2009/10/10 13:55:37 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.32 2009/10/21 05:43:41 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -314,6 +314,7 @@ sock_freebuf(struct sock *f) wbuf = LIST_FIRST(&f->pipe.file.wproc->ibuflist); if (wbuf) abuf_hup(wbuf); + f->tickpending = 0; } /* |