From 0cc1faf015a253ef64b97a8453b6fc959c0ee512 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 14 Jan 2021 09:59:03 -0500 Subject: lib9: reject postnote with special pids --- src/lib9/postnote.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib9/postnote.c') diff --git a/src/lib9/postnote.c b/src/lib9/postnote.c index 68e6d2f6..d750c69d 100644 --- a/src/lib9/postnote.c +++ b/src/lib9/postnote.c @@ -18,6 +18,11 @@ postnote(int who, int pid, char *msg) return -1; } + if(pid <= 0){ + werrstr("bad pid in postnote"); + return -1; + } + switch(who){ default: werrstr("bad who in postnote"); -- cgit v1.2.3