diff options
author | 2012-11-23 06:40:26 +0000 | |
---|---|---|
committer | 2012-11-23 06:40:26 +0000 | |
commit | 07e4e28e462a424a68709ae76796de42a5e40f5c (patch) | |
tree | c5ac803f35f796227e0120eb3c8c54d001b82734 /lib/libsndio/sio_aucat.c | |
parent | - Remove return's at the end of void functions (diff) | |
download | wireguard-openbsd-07e4e28e462a424a68709ae76796de42a5e40f5c.tar.xz wireguard-openbsd-07e4e28e462a424a68709ae76796de42a5e40f5c.zip |
Make the client wait for the first flow control message rather than
assuming it can send a full initial data buffer. This requires protocol
version bump (but no library version bump).
Diffstat (limited to 'lib/libsndio/sio_aucat.c')
-rw-r--r-- | lib/libsndio/sio_aucat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c index da2a270ac56..a8ce5190732 100644 --- a/lib/libsndio/sio_aucat.c +++ b/lib/libsndio/sio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_aucat.c,v 1.13 2012/11/02 10:24:58 ratchov Exp $ */ +/* $OpenBSD: sio_aucat.c,v 1.14 2012/11/23 06:40:26 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -189,7 +189,7 @@ sio_aucat_start(struct sio_hdl *sh) return 0; hdl->wbpf = par.bps * par.pchan; hdl->rbpf = par.bps * par.rchan; - hdl->aucat.maxwrite = hdl->wbpf * par.bufsz; + hdl->aucat.maxwrite = 0; hdl->round = par.round; hdl->delta = 0; DPRINTF("aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite); |