lib9: reject postnote with special pids

This commit is contained in:
Russ Cox 2021-01-14 09:59:03 -05:00
parent fdcf3d70c2
commit 0cc1faf015

View file

@ -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");