mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
lib9: reject postnote with special pids
This commit is contained in:
parent
fdcf3d70c2
commit
0cc1faf015
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue