As ratchov@ notes:
"all _aucat_wmsg() callers set hdl->wtodo, so your diff can't break
things that used to work by accident."
ok ratchov@
-/* $OpenBSD: aucat.c,v 1.62 2014/09/07 10:12:17 guenther Exp $ */
+/* $OpenBSD: aucat.c,v 1.63 2015/05/05 13:36:22 jsg Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
ssize_t n;
unsigned char *data;
- if (hdl->wstate == WSTATE_IDLE)
+ if (hdl->wstate == WSTATE_IDLE) {
hdl->wstate = WSTATE_MSG;
hdl->wtodo = sizeof(struct amsg);
+ }
if (hdl->wstate != WSTATE_MSG) {
DPRINTF("_aucat_wmsg: bad state\n");
abort();