diff options
author | 2009-02-26 22:14:18 +0000 | |
---|---|---|
committer | 2009-02-26 22:14:18 +0000 | |
commit | 8c95de1ce0c133c10e6fe56c071d6818ec86055a (patch) | |
tree | a11cefdbc6dc6d6332d2d7065951ef1dda9c7b7c /lib | |
parent | fix tree break with two missing chars (diff) | |
download | wireguard-openbsd-8c95de1ce0c133c10e6fe56c071d6818ec86055a.tar.xz wireguard-openbsd-8c95de1ce0c133c10e6fe56c071d6818ec86055a.zip |
don't use ``hdl->filling'' flag uninitialized
ok deraadt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libsndio/sun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c index 518f708a3e5..cc7d6b7aec4 100644 --- a/lib/libsndio/sun.c +++ b/lib/libsndio/sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sun.c,v 1.13 2009/02/04 07:54:00 ratchov Exp $ */ +/* $OpenBSD: sun.c,v 1.14 2009/02/26 22:14:18 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -469,6 +469,7 @@ sun_start(struct sio_hdl *sh) hdl->sa.eof = 1; return 0; } + hdl->filling = 0; sio_onmove_cb(&hdl->sa, 0); } return 1; |