diff options
author | 2009-10-21 05:43:41 +0000 | |
---|---|---|
committer | 2009-10-21 05:43:41 +0000 | |
commit | 6c83875dc958a0d93e19ed8f84c9d6df1d7d9af9 (patch) | |
tree | a06adeb7649fac8f41428504aabbd3b7a32e1278 | |
parent | %zu not %u, doh. (diff) | |
download | wireguard-openbsd-6c83875dc958a0d93e19ed8f84c9d6df1d7d9af9.tar.xz wireguard-openbsd-6c83875dc958a0d93e19ed8f84c9d6df1d7d9af9.zip |
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@
-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; } /* |