diff options
Diffstat (limited to 'usr.bin/aucat/sock.c')
-rw-r--r-- | usr.bin/aucat/sock.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c index 26f345937b8..c3e652b0ade 100644 --- a/usr.bin/aucat/sock.c +++ b/usr.bin/aucat/sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.7 2008/11/16 20:44:03 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.8 2008/11/17 07:04:13 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -700,6 +700,11 @@ sock_execmsg(struct sock *f) aproc_del(f->pipe.file.rproc); return 0; } + if (!(f->mode & AMSG_PLAY)) { + DPRINTF("sock_execmsg: %p: DATA, not allowed\n", f); + aproc_del(f->pipe.file.rproc); + return 0; + } f->rstate = SOCK_RDATA; f->rtodo = m->u.data.size; if (f->rtodo == 0) { |