summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2014-11-21 09:07:17 +0000
committerratchov <ratchov@openbsd.org>2014-11-21 09:07:17 +0000
commit1764576207f218e91de3b2622b024b428fc7839d (patch)
tree0c7b379dad2996d616de802b0b1edf95a4d2bf7d
parentDon't forget to transmit the xrun attribute in GETPAR messages. Found (diff)
downloadwireguard-openbsd-1764576207f218e91de3b2622b024b428fc7839d.tar.xz
wireguard-openbsd-1764576207f218e91de3b2622b024b428fc7839d.zip
Initialize the xrun attribute to SIO_IGNORE in sio_sun_getpar(). Found
by stu@, thanks!
-rw-r--r--lib/libsndio/sio_sun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sio_sun.c b/lib/libsndio/sio_sun.c
index db2b1ce39c9..2a6963c16bb 100644
--- a/lib/libsndio/sio_sun.c
+++ b/lib/libsndio/sio_sun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_sun.c,v 1.12 2014/08/15 03:51:40 guenther Exp $ */
+/* $OpenBSD: sio_sun.c,v 1.13 2014/11/21 09:07:17 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -713,6 +713,7 @@ sio_sun_getpar(struct sio_hdl *sh, struct sio_par *par)
aui.play.block_size / (par->bps * par->pchan);
par->appbufsz = aui.hiwat * par->round;
par->bufsz = par->appbufsz;
+ par->xrun = SIO_IGNORE;
return 1;
}