From eee8adb7bb476699942fd7fd81683b5291e84b40 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 May 2007 16:24:54 +0000 Subject: [PATCH] fix a DoS vulnerability (re #67), originally identified by Luigi Auriemma git-svn-id: svn://svn.0pointer.net/pulseaudio/trunk@1445 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/pstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/pstream.c b/src/pulsecore/pstream.c index 3398df0d..dbee7763 100644 --- a/src/pulsecore/pstream.c +++ b/src/pulsecore/pstream.c @@ -632,7 +632,7 @@ static int do_read(pa_pstream *p) { flags = ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]); - if (!p->import && (flags & PA_FLAG_SHMMASK) != 0) { + if (!p->use_shm && (flags & PA_FLAG_SHMMASK) != 0) { pa_log_warn("Recieved SHM frame on a socket where SHM is disabled."); return -1; } -- 2.11.4.GIT