diff options
author | Russ Cox <rsc@swtch.com> | 2021-01-14 09:59:03 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2021-01-14 09:59:03 -0500 |
commit | 0cc1faf015a253ef64b97a8453b6fc959c0ee512 (patch) | |
tree | 433bebcbde9a5d40eb75aaf4a44dedfcda83274f | |
parent | fdcf3d70c24886dddb5fd7052dfada67d33d5c75 (diff) | |
download | plan9port-0cc1faf015a253ef64b97a8453b6fc959c0ee512.tar.gz plan9port-0cc1faf015a253ef64b97a8453b6fc959c0ee512.tar.bz2 plan9port-0cc1faf015a253ef64b97a8453b6fc959c0ee512.zip |
lib9: reject postnote with special pids
-rw-r--r-- | src/lib9/postnote.c | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |